Skip to content

Instantly share code, notes, and snippets.

@sudipt1999
Created February 10, 2020 15:28
Show Gist options
  • Save sudipt1999/8d4e6e9079aa6dd2562603f88f8f1815 to your computer and use it in GitHub Desktop.
Save sudipt1999/8d4e6e9079aa6dd2562603f88f8f1815 to your computer and use it in GitHub Desktop.
const express = require('express')
const app = express()
const bodyParser = require('body-parser')
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())
const port = process.env.PORT || 8000
app.listen(port, ()=>{
console.log(`Server started at port ${port}`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment