npm install -g create-react-app //Global download tool
create-react-app hayden-aip-front //Download template project
cd hayden-aip-front
npm start
localhost:3000 //visit 3000 port
npm run build
npm install -g serve
serve build
yarn add antd
yarn add @ant-design/compatible
yarn add react-app-rewired customize-cra babel-plugin-import
yarn add less less-loader
yarn add react-router-dom
yarn add axios
yarn add jsonp
yarn add store
yarn add react-draft-wysiwyg draftjs-to-html
Global install express-generator:
npm install express -sage -g
npm install express-generator --save -g
Create Project:
// express myAppName
express hayden-aip-back
Enter the project, initialize dependencies, start the project:
npm install
npm start
Install necessary tools: router, cookie-parser, jsonwebtoken:
npm install router
npm install cookie-parser
npm install jsonwebtoken
Mongoose, multer, md5, nodemon:
npm install blueimp-md5
npm install multer
npm install mongoose
npm install nodemon
Front-end: localhost:7000
Back-end: localhost:6000