Skip to content

Latest commit

 

History

History
146 lines (109 loc) · 6.21 KB

README.md

File metadata and controls

146 lines (109 loc) · 6.21 KB

PoliceBot - An Chatbot for policemen for crime registration, awareness, emergency alert, tracking and readdressal

A Chatbot PWA
Explore the docs »

· Report Bug · Request Feature

Table of Contents

About The Project

The main idea of this product is as follows -

  • This app has 2 users one is the policemen and the other is citizen
  • Citizen can register crime by chatting with the users, track thier register case, fire a emergency alert, get safety tips from chatbot
  • Citizen can press the button on the navbar multiple times to register a crime
  • When a user registers a case he will get a whatsapp notification with the case number and the status of the case
  • The user can provide photos for a case
  • If a user fires an emergency alert, nearby policmen will get the update about it on thier whatsapp number
  • Citizen can see all the cases alongwith updates from the policemen in the second tab available to him "My cases"
  • The citizen also has the speech to text feature available for the chatbot where if he says emergency the user need not to press the enter button it will fire an emergency otherwise he will have to press enter for other messages
  • The policemen can see the pending case. He can then start the investigation of the case, mark spam. If a specific users cases gets marked as spam 3 times, the system will block the user from being logged in for 5 days
  • If the policemen starts a investigation the citizen that registerd that case will get a whatsapp message about the status update with the officer name
  • The policemen can send updates from the case dashboard to the recivers whatsapp number.
  • The policemen can even transfer the case to another policemen
  • When the case is completed the policmen can mark the case as complete and the user will get the whatsapp message with the status update

Technologies used

Getting Started

  1. Clone the repo
  2. Install all the packages in the package.json file
  3. Make a twilio,s3,location iQ account and add the api key wherever it is required
  4. Run the command To start the app in development server
npm start
  1. For building the production
npm run build

Prerequisites

  1. Install react,nodejs

Features

  1. When you first open the app you will see login page where you can login or register

login Laptop View login Mobile View

  1. If you have previously had a account you can register a new account by clicking on the register button where you can enter details and you will be redirected to the otp page which will be sent to your mobile number

Register Laptop view Register mobile view

  1. If you have been logged in you will be directed towards the main screen depending on the user type if you are
  • Citizen you will see the chatbot where you can perform all the mentioned opertaions for the user Chatbot Laptop view Chatbot mobile view
  • Citizen can also view all the cases registered by him in the my cases tab My cases Laptop view My cases mobile view
  • Citizen can fire emergency alert by pressing the icon on the navbar multiple times
  • If You have logged in as a policemen you can see all the fetures mentioned here
    • Emergency Tab for policemen Emergency cases police Laptop View Emergency cases police mobile View
    • Pending cases Tab for policemen pending cases police laptop view pending cases police mobile view
    • When the police clicks on a pending case he will be redirected to a new page with more details pending cases Dashboard police laptop view pending cases Dashboard police Mobile view
    • Policemen my cases tab My cases policemen laptop view My cases policemen mobile view
    • When a policemen clicks on a case he will see the case dashboard My cases dashboard laptop view My cases dashboard mobile view
    • Policemen can track any case with the track tab Tracking Laptop View
      Tracking Mobile View

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

linkedin GMAIL