Created
June 26, 2018 09:42
-
-
Save ValeryC/de080734b10acf38a34ef563d613f820 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
const express = require('express'); | |
const app = express(); | |
//app.get(/) | |
app.get('/', (req, res, next) => { | |
// console.log(req); | |
res.send("welcome this is the 1st page") | |
}); | |
app.get('/about', (req, res, next) => { | |
// console.log(req); | |
res.send("hi, go to baloulee on dailymotion") | |
}); | |
app.listen(3000); | |
console.log('3000 is the magic port so :) => localhost:3000'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment