Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruslanguns/nest-my-microservice
Repository with Microservice Connection Samples 😎
https://github.com/ruslanguns/nest-my-microservice
Last synced: 7 days ago
JSON representation
Repository with Microservice Connection Samples 😎
- Host: GitHub
- URL: https://github.com/ruslanguns/nest-my-microservice
- Owner: ruslanguns
- Created: 2020-09-02T21:22:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:56:47.000Z (11 months ago)
- Last Synced: 2024-05-28T17:07:36.561Z (6 months ago)
- Language: TypeScript
- Size: 140 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Microservice Sample Monorepo
## Description
In this repository I have a monorepo generated the with Nest CLI, the idea is to share the different settings per Microservice Transport Layer.
## Transports supported
- [x] TCP
- [x] Redis
- [x] gRPC
- [ ] MQTT
- [ ] NATS
- [ ] RabbitMQ
- [ ] Kafka## Installation
```bash
$ yarn
```## Running the app
```bash
# development
$ nest start --watch# Run the correspondent Transport App Project
$ nest start micro-tcp
```## How to use it?
Open an API Test Client like curl, insomia or postman and then just run the HTTP POST call to the following endpoint:
`http://localhost:3000/add`
and then provide in the Body the data with the values to sum each other:
`{
"data": [10,10, 10]
}`This will output: `60` if everything is fine.
Please make sure both the microservice and my-app applications are running.
## Author information
- Author - Ruslan Gonzalez
- Website - [https://rusgunx.tk](https://rusgunx.tk/)
- Twitter - [@ruslangonzalez](https://twitter.com/ruslangonzalez)## License
Nest is [MIT licensed](LICENSE).