Computer Network Lab Final Project
npm install
npm run build
npm run server
npm install
npm run debug
- Run up backend server with
--inpect
- Run up backend server with
npm run start
- Run up frontend react server to enable responsive frontend development
- With
window.BACKEND
varable insrc/index.js
correctly set, react can communicate with backend server
- server will run on
HOST
:BACKEND_PORT
- react will run on
HOST
:FRONTEND_PORT
- modify HOST in .env
- modify the host part of window.BACKEND in src/index.js
- change PORT in package.json (script: server and debug)
- modify the port part of window.BACKEND in src/index.js
- change PORT in package.json (script: start)
- modify FRONTEND_PORT in .env