前後端連載筆記
阿新 • • 發佈:2019-01-03
- 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\"" },