Skip to content

Instantly share code, notes, and snippets.

@ValeryC
Created June 26, 2018 09:42
Show Gist options
  • Save ValeryC/de080734b10acf38a34ef563d613f820 to your computer and use it in GitHub Desktop.
Save ValeryC/de080734b10acf38a34ef563d613f820 to your computer and use it in GitHub Desktop.
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