Skip to content

StaySafe is a web app designed to check safety or crime rates of the areas you visit or want to live in.

License

Notifications You must be signed in to change notification settings

ChicoState/StaySafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StaySafe

Enviroment Setup

  1. For macOS users, install Homebrew and then install Docker Compose:
brew install docker-compose
  1. 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
  1. Clone the Github repository from ChicoState/StaySafe and navigate to it:
git clone [email protected]:ChicoState/StaySafe.git
cd StaySafe
  1. Build the Docker images:
docker-compose up
  1. React frontend can be found at http://localhost:3000/
  2. Node backend data can be found at http://localhost:8080/

Docker Troubleshooting

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

About

StaySafe is a web app designed to check safety or crime rates of the areas you visit or want to live in.

Resources

License

Stars

Watchers

Forks

Languages