/CrowdRepelAPI

Node.js API for CrowdRepel

Primary LanguageJavaScript

CrowdRepelAPI

This serves the production build of the REST APIs required to run CrowdRepel Frontend: https://github.com/sgcuber24/crowd-repel-react. ML Model: https://github.com/Ashwin-Ramesh2607/Crowd-Human-Detection

Installation

  1. Install Dependencies

  2. Go to the project's root directory cd /my/path/to/directory

  3. Run npm install

  4. Start using it! npm start

Available end-points

GET /api/v1/count

Gets crowd count in all areas.

POST /api/v1/count

Creates an entry (be sure you are sending the headers via your library).

Headers

Content-Type : application/json

Request body (raw)

    {
      "cctvId":"6",
      "latitude":12.971879,
      "longitude":77.595739,
      "peopleCount": 25
    }