개발라이프/React

1-10. Node JS와 React 동시 실행

상상상상라이프 2022. 11. 9. 12:56

1. server

서버 Nodemon 설치

명령어 : npm install nodemon --save

nodemon concurrently 설치

명령어 : npm install nodemon concurrently --save

2. React 클라이언트

React 클라이언트 Nodemon 설명령어 : npm install nodemon --save

nodemon concurrently 설치

명령어 : npm install nodemon concurrently --save-dev

3. React 클라이언트 package.json

내용추가 "dev" : "concurrently \"nodemon server/server.js\" \"npm run start\""

4. 실행 : npm run dev

동시실행 완료!!!

참조 : https://fe-flower.tistory.com/m/37