- Microservices architecture implemented in Go.
- Utilizes gRPC for communication between services.
- Consists of 3 separate Microservices and 1 API Gateway.
- API Gateway manages incoming HTTP requests.
- gRPC used to route and forward requests to Microservices.
- Incorporates JWT authentication for enhanced security.
TStep-by-step instructions to set up and run a microservices architecture using Docker Compose. The architecture consists of three microservices—auth-svc
, order-svc
, and product-svc
—communicating through gRPC, all managed by an API Gateway.
Ensure you have the following software installed on your system:
- Docker
- Docker Compose
-
Clone the Repository:
git clone <repository_url> cd <repository_folder>
-
Build images and start service
docker-compose up -d
-
Access the service
Base Url: http://localhost:3001
- Description: Register a new user.
- Handler function:
Register
- Description: Authenticate and log in a user.
- Handler function:
Login
- Description: Create a new product.
- Handler function:
CreateProduct
- Description: Retrieve a list of all products.
- Handler function:
FindAll
- Description: Retrieve details of a specific product by its ID.
- Handler function:
FindOne
- Description: Create a new order.
- Handler function:
CreateOrder