Skip to content

Instantly share code, notes, and snippets.

@gokulhans
Last active August 10, 2022 16:27
Show Gist options
  • Save gokulhans/f9d9acfa67663dda92a9ff36c1793325 to your computer and use it in GitHub Desktop.
Save gokulhans/f9d9acfa67663dda92a9ff36c1793325 to your computer and use it in GitHub Desktop.
Create Node Server
const express = require('express')
const cors = require('cors')
const app = express()
app.use(express.json())
app.use(cors())
const PORT = 8080
app.listen(PORT, () => {
console.log(`Server is running on PORT ${PORT}...`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment