Because this app is made of two npm projects, there are two places to run npm commands:
- Node API server at the root
./ - React UI in
client/directory.
In a terminal:
# Initial setup
npm install
# Start the server
npm startnpm install package-name --saveThe React app is configured to proxy backend requests to the local Node server. (See "proxy" config)
In a separate terminal from the API server, start the UI:
# Always change directory, first
cd client/
# Initial setup
npm install
# Start the server
npm start# Always change directory, first
cd client/
npm install package-name --save