https://github.com/yagoluiz/product-microservices
Comunication microservices using gRPC and NodeJS
https://github.com/yagoluiz/product-microservices
docker docker-compose grpc microservice nodejs
Last synced: about 1 month ago
JSON representation
Comunication microservices using gRPC and NodeJS
- Host: GitHub
- URL: https://github.com/yagoluiz/product-microservices
- Owner: yagoluiz
- Created: 2019-12-08T22:53:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T02:43:43.000Z (over 4 years ago)
- Last Synced: 2025-01-23T16:53:07.012Z (3 months ago)
- Topics: docker, docker-compose, grpc, microservice, nodejs
- Language: JavaScript
- Homepage:
- Size: 317 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Product - Microservices

Microservice responsible for listing discounted products via gRPC [discount microservice](https://github.com/yagoluiz/discount-microservices).
## Data information
Data is stored in Postgres database. The scripts for table generation and initial data are present in the **sql folder**.
## Instructions for run project
For run project and integration testing, the database and discount service must be run.
### npm/nodemon
* Run application:
`npm start`
or
`nodemon .\bin\server.js`
* Test application:
`npm test`
### Container
* Docker:
`docker build -t product-microservices .`
Run project [discount microservice](https://github.com/yagoluiz/discount-microservices):
`docker build -t discount-microservices .`
* Docker compose:
`docker-compose up -d .`
### Endpoint
*http://localhost:3000/api/v1/products* **(GET)**