Our mission is to enhance personal and community safety by providing comprehensive insights and data analysis. We aim to support businesses in identifying optimal locations for hosting their operations, assist travelers in selecting the safest and most suitable accommodations, and guide home buyers in finding their ideal homes. Through informed decision-making, we strive to contribute to safer environments and more prosperous communities.
- MongoDB (database)
- Express.js (application controller layer)
- React.js (web application presentation)
- Node.js (JavaScript runtime)
-
Install Docker Desktop from the Docker website or the standalone Docker Compose from your package manager:
# For Debian/Ubuntu and derivatives sudo apt install docker-compose # For Arch and derivatives sudo pacman -S docker-compose # For macOS with Homebrew brew install docker-compose
-
Clone this repository and navigate to it:
git clone [email protected]:ChicoState/StaySafe.git cd StaySafe
-
Build and start the containers.
docker compose up
-
Access the app via a web browser:
- Frontend at http://localhost:3000/
- Backend at http://localhost:8080/
If you run into issues with the environment, try running docker-clean.sh
or use the following:
docker rm staysafe_front staysafe_back staysafe_mongo
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 frontend/node_modules
rm -r backend/node_modules frontend/node_modules
docker rm staysafe_front staysafe_back staysafe_mongo
docker compose build --no-cache
docker compose up