A simple Push-to-Talk web application. Developed as a contour solution and proof of concept for voice communications in firefighter activities.
https://webtalkiecbmdf.herokuapp.com/
A combo of two npm projects, the backend server and the frontend UI. So there are two package.json
configs and thereforce two places to run npm
commands:
- Node server:
./package.json
- React UI:
react-ui/package.json
- generated by create-react-app
- deployed via
build
script in the Node server's./package.json
- module cache configured by
cacheDirectories
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
react-ui/
directory.
In a terminal:
# Initial setup
npm install
# Start the server
npm start
npm install package-name --save
The 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 react-ui/
# Initial setup
npm install
# Start the server
npm start
# Always change directory, first
cd react-ui/
npm install package-name --save