0.0.1 • Published 6 years ago
ratings-reviews v0.0.1
Building RESTful Web APIs with Node.js, Express, MongoDB and TypeScript
This is REST API for: "This miscro-service used to handle reviews and ratings submit by renters, owners, etc".
Requirements
Install global TypeScript and TypeScript Node
npm install -g typescript ts-nodeGetting Started
.env file containes environment variables that need to be set in order to get the project up and running
Clone this repository
Clone repoThen install the dependencies
npm installSet the environment variables
Environment variables that need to be set in order to get the project up and running
MONGO_CONN_STR=mongodb+srv://admin:mongodbpass@cluster0-kiemb.azure.mongodb.net/reviewdb?retryWrites=true
SERVER_PORT=8117
BC_SAVE_ASSET_API=http://aarvm2.westeurope.cloudapp.azure.com:3000/membership/invoke/asset/registerAsset
APPINSIGHTS_INSTRUMENTATIONKEY=...
NODE_ENV=development
MEMBER_MANAGEMENT_SERVICE=http://137.116.151.106:9000/
BILLING_MANAGEMENT_SERVICE=http://137.116.151.106:9000/
ASSET_MANAGEMENT_SERVICE=http://137.116.151.106:9000/Start the server
Run in development mode
npm run startRun in watch mode
npm run start:watchRun in production mode
npm run prodUnit testing
Run jest unit tests
npm run testRun unit tests in watch mode
npm run test:watchTesting
The default URL is: http://localhost:8080
- GET all ratingReview objects
Send GET request to http://localhost:8080/ratingReviews0.0.1
6 years ago