mukama / con-cruise-api

API for Con Cruise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Con Cruise API

Description

Con Cruise API solves an optimization problem in demand fulfillment between customers and the cruisers. This implementaion uses the hungarian algorithm, a combinatorial optimization algorithm that solves this specific assignment problem.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Adding a new customer

curl -d '{"name": "Caesar Mukama", "latitude": 8.0093062, "longitude": -62.4015536, "rides": 49, "rating": 4}' -H "Content-Type: application/json" -X POST http://localhost:3000/customer

CLI

https://github.com/mukama/con-cruise-cli

About

API for Con Cruise


Languages

Language:TypeScript 96.7%Language:JavaScript 3.3%