This Node.js API is a replica of the Java version (no authentication - to be added later). This API is built to work with the Aerogear Aerodoc application. The endpoint URL in the dataservice.js file in the Aerodoc project must be updated to point at the URL of this API. The endpoint URL must also be updated in the lead controller of the Aerodoc project. This API will be used as a reference to build a microservices version of this API.
-
Install Mongo
Mongo needs to be installed and running.
-
Install dependencies
npm install
-
Populate the database with the sales agents for logging into the system.
npm run populateDb
-
Start the server on port 3000
npm start
npm test
npm run coverage
API docs can be found at 'localhost:3000/docs'