Code Monkey home page Code Monkey logo

nest-nats-microservices-example's Introduction

Microservices Template with Nest.js, NATS, and Docker

Welcome to the Microservices Template repository! This repository serves as a foundational setup for building microservices using Nest.js, NATS (NATS Streaming Server), and Docker. With this template, you can quickly create and deploy your own microservices architecture with ease.

Features

  • Nest.js: A progressive Node.js framework for building efficient, reliable, and scalable server-side applications.
  • NATS: A lightweight and high-performance messaging system for inter-service communication, enabling seamless communication between microservices.
  • Docker: Containerization technology to ensure consistency and portability across different environments.

Getting Started

  1. Clone the repository:
    git clone https://github.com/SourceSenseiTheRealOne/nest-nats-microservices-example
  2. Navigate to the project directory:
    cd nest-nats-microservices-example
  3. Start the microservices:
    docker-compose up --build

Structure

The repository structure is organized as follows:

  • api-gateway: Contains the API Gateway service built with Nest.js, responsible for routing requests to the appropriate microservices.
  • users-microservice: Contains the Users Microservice built with Nest.js, handling user-related functionality.
  • payments-microservice: Contains the Payments Microservice built with Nest.js, managing payment processing.
  • docker-compose.yml: Defines the Docker services for running the microservices and NATS.

Communication

The microservices communicate with each other using NATS messaging system. NATS ensures reliable and efficient communication between services, enabling seamless integration and scalability.

Contributing

Contributions are welcome! If you have any suggestions, enhancements, or bug fixes, feel free to open an issue or submit a pull request.

Todo:

Swagger

License

This project is licensed under the MIT License.

nest-nats-microservices-example's People

Contributors

sourcesenseitherealone avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.