- For macOS users, install Homebrew and then install Docker Compose:
brew install docker-compose
- For Linux users, install Docker Compose with your distro's package manager:
# For Debian/Ubuntu and derivatives
sudo apt install docker-compose
# For Arch and derivatives
sudo pacman -S docker-compose
- Clone the Github repository from ChicoState/StaySafe and navigate to it:
git clone [email protected]:ChicoState/StaySafe.git
cd StaySafe
- Build the Docker images:
docker-compose up
- React frontend can be found at http://localhost:3000/
- Node backend data can be found at http://localhost:8080/
If you run into issues with the Docker environment, try running docker-clean.sh
or use the following:
docker rm staysafe_front
docker rm staysafe_back
docker-compose build --no-cache
docker-compose up
If the above doesn't resolve the issue, and the issue appears to be related to npm dependencies:
rm backend/package-lock.json
rm -r backend/node_modules
rm frontend/package-lock.json
rm -r frontend/node_modules
docker rm staysafe_front
docker rm staysafe_back
docker-compose build --no-cache
docker-compose up