/TripService

Trip Service for Fleet Management

Primary LanguageJavaScript

Trip service for Trip/Rules/Notifications APIs Management

Trip Service is REST API server implementation built on top Node.js and Express.js with mongoose for Cosmos MongoDB integration.

You need to have Node.js,Azure Cosmos DB Emulator and Visual Studio installed.

Installation

npm install

Run server

npm start

Testing the API

Test REST API using Postman

http POST http://localhost:3303/

Publishing a NodeJS app to Azure

1.In Visual Studio, create a new project, and for the type, select 'From Existing Node.js code'.
2.Add project from your project home folder( ‘c:\users..\projects’).
3.At the top of the project, right click and select publish: In the resulting popup, select ‘Microsoft Azure App Service’
4.Download the PublishSettings File of Trip Service from the Azure Portal and use it for deployment.
Once it is download, you can import it in your Visual Studio Publish Web Application wizard.Finally you can start publish by selecting “Publish” option.
After setting things up remotely, Visual Studio will proceed to publish the app to Azure.

Documentation

Check out the api docs we have written so far for more documentation. Use below credentials to access the api documentation.
Username:admin
Password:fleet@123