Created
October 23, 2018 10:17
-
-
Save luandevpro/b133187dd1ba27178e89d1784444c928 to your computer and use it in GitHub Desktop.
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 | |
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