Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 😎

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).