nodejs - - - - - express- create projects quickly

1. Install the plugin

【 express-generator 】

npm install -g express-generator

2. Quickly create projects

express --no-view my-server

Created successfully, as shown in the figure:
insert image description here

3. Switch paths & install dependencies & start the project

cd my-server
npm install
npm run start

insert image description here

Open a browser to visit:
http://localhost:3000/
insert image description here

Guess you like

Origin blog.csdn.net/Dark_programmer/article/details/131061724