Skip to content

Instantly share code, notes, and snippets.

@MiguelCamilo
Last active February 18, 2023 23:42
Show Gist options
  • Save MiguelCamilo/748bd94cb7d85e61dbd7805011cdc024 to your computer and use it in GitHub Desktop.
Save MiguelCamilo/748bd94cb7d85e61dbd7805011cdc024 to your computer and use it in GitHub Desktop.
How to set up basic express server 💻
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