Answers for "node.js express app"

57

create express app

## Command
$ npx express-generator

: 'For earlier Node versions, install the application generator as a global
npm package and then launch it':
$ npm install -g express-generator
$ express

## Display the command options with the -h option:
$ express -h
Posted by: Guest on June-11-2021
6

require express server.js

const express = require('express')const app = express() app.get('/', function (req, res) {  res.send('Hello World')}) app.listen(3000)
Posted by: Guest on March-19-2020
0

node express

npm install express --save
Posted by: Guest on July-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language