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

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StaySafe Logo

About StaySafe

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.

Table of Contents

Software Stack

MERN

  • MongoDB (database)
  • Express.js (application controller layer)
  • React.js (web application presentation)
  • Node.js (JavaScript runtime)

Environment Setup

  1. 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
  2. Clone this repository and navigate to it:

    git clone [email protected]:ChicoState/StaySafe.git
    cd StaySafe
  3. Build and start the containers.

    docker compose up 
  4. Access the app via a web browser:

Environment Troubleshooting

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

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