//npm modules
const express = require('express');
// create the server
const app = express();
// create the homepage route at '/'
app.get('/', (req, res) => {
console.log(req)
res.send('You hit the home page without restarting the server automatically\n')
})
// tell the server what port to listen on
app.listen(3000, () => {
console.log('Listening on localhost:3000')
})
Last active
October 29, 2017 17:59
-
-
Save evangow/6e477d522e111b061ffc4819f3ccad8d to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment