Answers for "create express project"

6

how to make an express server

// this is your code
// ZDev1#4511 on discord if you want more help!
// first you should install express in the terminal
// `npm i express`.
const express = require('express');
const app = express();

// route
app.get('/', (req,res)=>{
  // Sending This is the home page! in the page
  res.send('This is the home page!');
});

// Listening to the port
let PORT = 3000;
app.listen(PORT)

// FINISH!
Posted by: Guest on July-03-2020
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
2

initialize express app

npx express-generator
Posted by: Guest on August-15-2020
0

generate express app

$ npx express-generator
Posted by: Guest on September-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language