[feat] Implement to launch client and server at a time using Concurrently
Showing
2 changed files
with
5 additions
and
3 deletions
This diff is collapsed. Click to expand it.
... | @@ -4,15 +4,17 @@ | ... | @@ -4,15 +4,17 @@ |
4 | "description": "", | 4 | "description": "", |
5 | "main": "index.js", | 5 | "main": "index.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | - "start": "node index.js", | 7 | + "start": "node server/index.js", |
8 | - "backend": "nodemon index.js", | 8 | + "backend": "nodemon server/index.js", |
9 | - "test": "echo \"Error: no test specified\" && exit 1" | 9 | + "test": "echo \"Error: no test specified\" && exit 1", |
10 | + "dev": "concurrently \"npm run backend\" \"npm run start --prefix client\"" | ||
10 | }, | 11 | }, |
11 | "author": "mindyeoi", | 12 | "author": "mindyeoi", |
12 | "license": "ISC", | 13 | "license": "ISC", |
13 | "dependencies": { | 14 | "dependencies": { |
14 | "bcrypt": "^5.0.1", | 15 | "bcrypt": "^5.0.1", |
15 | "body-parser": "^1.19.0", | 16 | "body-parser": "^1.19.0", |
17 | + "concurrently": "^6.2.0", | ||
16 | "cookie-parser": "^1.4.5", | 18 | "cookie-parser": "^1.4.5", |
17 | "express": "^4.17.1", | 19 | "express": "^4.17.1", |
18 | "jsonwebtoken": "^8.5.1", | 20 | "jsonwebtoken": "^8.5.1", | ... | ... |
-
Please register or login to post a comment