Installation environment

Vscode editor

node

nodemon (npm i nodemon -g)

vue

vue-cli

mongoDB

Set up projects on Github

Juejin. Cn/post / 695900…

Project development

Open the project in vscode

The project is divided into three parts: background management interface, server, mobile terminal/Web terminal

Create a serve folder to store the server

The serve folder is used to store all Node. js code and provide interfaces for the background management interface and web side

Enter vue create Web on the terminal to create a vUE project to store web or mobile code

Vue-cli created projects, many of which are already automatically configured.

Create a new terminal window Continue with vue create admin to create a new vUE project for the background administration interface

Initialize the serve project

Create a third terminal window and go to CD Serve

Initialize the project NPM init-y to quickly create a package.json file.

The default entry file is index.js. Create a new index.js file.

Add the project startup command to package.json->scripts:

“serve”:”nodemon index.js”

You can now start the Serve project with ‘NPM Run Serve’