Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dlowkeen/driver-dispatch

Automatic Driver-Shipment Dispatch Application | Node.js
https://github.com/dlowkeen/driver-dispatch

async-functions fs geolib jasmine jasmine-tests nodejs recursion request request-promise

Last synced: 12 days ago
JSON representation

Automatic Driver-Shipment Dispatch Application | Node.js

Awesome Lists containing this project

README

        

# driver-dispatch
Automatic Driver-Shipment Dispatch Application | Node.js

A basic automatic dispatch system for some shipments! Your app will be able to read from a list of shipments that need to be picked up and a list of available drivers and their locations, and hit an existing REST endpoint to dispatch these shipments to nearby drivers.
You are given the following:
- JSON file representing a list of drivers with their current locations
- driverId is the key of each JSON object (1, 2, 3...)
- JSON file representing a list of 5 active shipments and their pickup locations
- shipmentId is the key of each JSON object (65289023243, 3823958290...)

## Live Demo of Solution

### Prerequisites

* Node.js

### Set Up Directions
In the command line, type `npm install` to download node packages. Go to package.json file to view dependencies.
Type `node index.js` to initiate application.

### Testing
In the command line, type `npm test`

## Built With

* [Node.js](https://nodejs.org/en/)

### Directory structure
```
├── drivers.json
├── index.js
├── package.json
└── shipments.json
```

## Developers
- Donovan Lowkeen | [GitHub](https://github.com/dlowkeen)