Last active
February 18, 2023 23:42
-
-
Save MiguelCamilo/748bd94cb7d85e61dbd7805011cdc024 to your computer and use it in GitHub Desktop.
How to set up basic express server 💻
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from "express" | |
const app = express() | |
const port = 3030 | |
app.use(express.json()) | |
app.listen(port, () => { | |
console.log(`Server listening on port ${port}`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment