What do you want to save?
Add Code snippet
New code examples
-
-
-
-
Javascript 2021-10-19 22:13:06
Express Routing
//to run : node filename.js const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`)) /... Add solution -
Other 2021-10-12 16:11:11
do we need to install express everytime with npm
Yes, install Express and other NPM components separately for each project. This way, you keep each project independent from the others and you can upgrade components in one without affecting all the others. Each project then has its own package. Add solution -
-
Javascript 2021-09-29 02:33:09
simple node server
//to run : node filename.js const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`)) /... Add solution -
-
Javascript 2021-09-16 21:10:02
express js basic example
//to run : node filename.js const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => res.send('Hello World!')) app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`)) /... Add solution -
Best helpers
Ranking is empty