Policing hackathon 2017
The current system by which police officers communicate information to victims is painful and can lead to arguments going back and forth. This can often lead to degrading officer mental wellbeing.
A communication system to share updates on the investigation of a crime, combined with notifications, status and further information regarding the progress of the investigation and optional information explaining some of the reasoning behing the decisions made by the officer.
JSON file:
{
"crimeID": "000001",
"name": "Kidnapping of doodle",
"date": "2017-12-10T02:18:21.549358",
"description": "Criminally good hackathon project",
"status": "Investigating",
"officer": "Somebody",
"location": {},
"timeline": [
{
"date": "2017-12-10T02:20:21.549358",
"title": "Looking for evidence",
"description": "",
"state": "pending"
},
{
"date": "2017-12-10T02:30:21.549358",
"title": "Handed self administered interview forms",
"description": "Used because of the large amount of witnesses",
"state": "pending"
},
{
"date": "2017-12-10T02:40:21.549358",
"title": "Found doodle",
"description": "Found doodle in the cookie jar",
"state": "done",
"media": [
{
"name": "Picture of doodle in the cookie jar",
"content-type": "image/jpeg",
"url": "https://placekitten.com/200/300"
}
]
}
]
}
The backend runs on python2 and has the following dependencies: flask
, flask_cors
, pymongo
, socketIO_client
, flask_socketio
You will also need to install and run MongoDB on your system.
To install the project:
$ npm install
To run the dev server:
$ npm start
To run the server:
$ FLASK_APP=server.py flask run