This is a easy to setup and use police server CAD. Includes a signup/login for both Civilians and Police Officers. Also this is mobile friendly.
- Set Up MongoDB and start mongodb
- Clone repo from https://github.com/Linesmerrill/police-cad.git
- Run
npm install
to install dependencies. - Duplicate
.env.example
and rename the new file to.env
. Edit to your configurations. - Run
npm start
to boot up server. - Go to http://localhost:8080.
We have since began migrating most of our backend code to our police-cad-api. This is now required to be running in order to access certain parts of the app.
Follow along with the instructions on how to start and run that service here.
Once Running, you will need to add two new environment variables, you can an example of those here.
- Install mongodb via brew Step by step instructions
- Start mongodb via brew Step by step instructions
- Locally this will use the knoldus db (or whatever you specify manually)
- launch mongo via your command-line:
mongo
- Use
show dbs
to see all that are available. You should seeknoldus
in the list. - Lets use that db:
use knoldus
.