Skip to content

Instantly share code, notes, and snippets.

@luandevpro
Created October 23, 2018 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luandevpro/b133187dd1ba27178e89d1784444c928 to your computer and use it in GitHub Desktop.
Save luandevpro/b133187dd1ba27178e89d1784444c928 to your computer and use it in GitHub Desktop.
// import express
const express = require('express')
app = express()
port = process.env.port || 3000
// configure application
// set routes
app.get("/" , (req,res) => {
res.send("hello")
res.end()
})
// listen port
app.listen(port , () => {
console.log(`Da chay server thanh cong ${port}`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment