/border-guru

Primary LanguageJavaScript

BorderGuru Nodejs

This is the BorderGuru Nodejs Coding Challenge task.

Installation:

Run it using Docker docker-compose up OR run it locally by using following commands:
  • npm install
  • npm run build
  • npm run start

Pre-requisites:

  • nodejs 6+
  • npm 3+
  • mongodb

The api will be up on http://localhost:8080


Routes:

  • GET /orders
  • POST /orders
  • PUT /orders/:orderID
  • DELETE /orders/:orderID
  • GET /orders/search/company/:q
  • GET /orders/search/address/:q
  • GET /orders/count

Testing:

Run the test-case for api by running: npm run test