前后端连载笔记
程序员文章站
2022-08-10 16:46:37
npm install @vue/cli vue create client 前端处理: client > package.json > " start" : "npm run server" 后端处理: npm run dev npm run server nodemon server.js np ......
- npm install @vue/cli
- vue create client
- 前端处理: client------ > package.json------> " start" : "npm run server"
- 后端处理:
- npm run dev --- npm run server --- nodemon server.js npm run client --- npm start --prefix client ---- npm run start (前端) --- npm run server --- npm run vue-cli-service server
-
"scripts": {//前端"client-install": "npm install --prefix client","client": "npm start --prefix client",//后端"start": "node server.js","server": "nodemon server.js",//连载"dev": "concurrently \"npm run server\" \"npm run client\""},