Skip to content

This repository contains a gateway that serves as an entry point for communicating with multiple microservices via the TCP protocol.

Notifications You must be signed in to change notification settings

Nest-Microservices-Samples/client-gateway

Repository files navigation

🌐 Client Gateway

NestJS Logo

The Client Gateway acts as the communication point between clients and our services. It is responsible for receiving requests, forwarding them to the appropriate services, and returning the responses to the client.

🚀 Development Setup

  1. 📥 Clone the repository:

    git clone https://github.com/YourUsername/client-gateway
    cd client-gateway
  2. 📦 Install dependencies:

    npm install
  3. 🔧 Set up environment variables: Create a .env file based on the provided .env.template:

    cp .env.template .env

    Edit the .env file to add the required environment variables.

  4. 🔄 Start the microservices to be consumed: Make sure the microservices that the gateway will consume are up and running.

  5. 🛠️ Start the application in development mode:

    npm run start:dev

📚 Documentation

  • For more details about the gateway's functionality and usage, refer to the docs folder or any API documentation provided.
  • Learn more about NestJS at nestjs.com.

Nats

docker run -d --name nats-server -p 4222:4222 -p 8222:8222 nats

About

This repository contains a gateway that serves as an entry point for communicating with multiple microservices via the TCP protocol.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published