Skip to content

This repository contains an example of building microservices using NestJS, RabbitMQ, and integrating multiple databases such as MySQL and MongoDB.

License

Notifications You must be signed in to change notification settings

wardvisual/microservices-nestjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

    git clone https://github.com/wardvisual/microservices-nestjs.git
  2. Install the dependencies

    cd microservices-nestjs/admin && npm install
    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

About

This repository contains an example of building microservices using NestJS, RabbitMQ, and integrating multiple databases such as MySQL and MongoDB.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published