Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wardvisual/microservices-nestjs
This repository contains an example of building microservices using NestJS, RabbitMQ, and integrating multiple databases such as MySQL and MongoDB.
https://github.com/wardvisual/microservices-nestjs
microservices nestjs nestjs-microservices rabbitmq
Last synced: about 1 month ago
JSON representation
This repository contains an example of building microservices using NestJS, RabbitMQ, and integrating multiple databases such as MySQL and MongoDB.
- Host: GitHub
- URL: https://github.com/wardvisual/microservices-nestjs
- Owner: wardvisual
- License: mit
- Created: 2023-01-14T15:09:25.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-20T12:42:03.000Z (6 months ago)
- Last Synced: 2024-07-20T13:57:52.326Z (6 months ago)
- Topics: microservices, nestjs, nestjs-microservices, rabbitmq
- Language: TypeScript
- Homepage:
- Size: 219 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Microservices with NestJS and RabbitMQ
This repository contains an example of building microservices using NestJS, RabbitMQ, and integrating multiple databases such as MySQL and MongoDB.
## Prerequisites
- Node.js
- RabbitMQ
- MySQL
- MongoDB## Installation
1. Clone the repo
```sh
git clone https://github.com/wardvisual/microservices-nestjs.git
```2. Install the dependencies
```sh
cd microservices-nestjs/admin && npm install
``````sh
cd microservices-nestjs/user && npm install
```## Usage
The application provides two services: `admin` and `user`. `admin` is responsible for sending messages to `user` via a RabbitMQ message queue.
You can test the communication between the services by sending a message to `admin` and observing the message being received by `user`.
## Note
This is just an example, you can use this as a starting point to build your own microservices with NestJS, RabbitMQ, and multiple databases. Make sure to update the database credentials accordingly before running the application.
## License
Distributed under the MIT License. See `LICENSE` for more information.
## Contact
Edward Fernandez: [Wardvisual](https://wardvisual.me/)