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: 7 days ago
JSON representation
Automatic Driver-Shipment Dispatch Application | Node.js
- Host: GitHub
- URL: https://github.com/dlowkeen/driver-dispatch
- Owner: dlowkeen
- Created: 2018-05-05T01:30:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-25T00:31:16.000Z (almost 8 years ago)
- Last Synced: 2025-03-02T16:36:49.142Z (about 1 year ago)
- Topics: async-functions, fs, geolib, jasmine, jasmine-tests, nodejs, recursion, request, request-promise
- Language: JavaScript
- Homepage:
- Size: 9.5 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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)