Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Ginden/bob-io-recruitment-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bob.io recruitment task

Running project

docker-compose up will work (or npm run build).

If you can't use Docker, you will need to:

  • Use Node 10
  • Install MongoDB database and make it use default port
  • Change connection string in lib/config.js
  • Run npm start

Connecting with truck-emulator

This app exposes port 40718, default for truck-emulator.

So running fresh truck-emulator on localhost will make it connect automatically.

Endpoints:

Example request made with curl:

curl -X POST http://localhost:40718/closest -d '{"lat": 50, "lng": 20}' -H "Content-Type: application/json"

Running tests

npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published