This gateway serves as the entry point to the FinMan application ecosystem. It provides a unified interface for accessing various services through gRPC endpoints and exposes Swagger documentation for easy API reference.
- Docker
- Docker Compose
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Build the Docker images:
docker-compose build
-
Start the services:
docker-compose up
-
Access the gateway at:
- Gateway endpoint:
http://{gateway-ip}:{gateway-port}
- Swagger documentation:
http://{gateway-ip}:{gateway-port}/openapi/
- Gateway endpoint:
The gateway orchestrates access to the following services:
- Authentication Service: Handles user authentication and authorization.
- User Service: Manages user information and interactions.
- Role Service: Manages roles and permissions for users.
Explore the APIs using Swagger UI:
- Swagger UI:
http://{gateway-ip}:{gateway-port}/openapi/
Ensure your environment variables are correctly set in the .env
file for each service:
JWT_SECRET=eDM!":jmx2/QoHBlY'.O8e4?Uy,",9
JWT_EXPIRE_MINUTE=20
PORT=8080
IP=0.0.0.0
USER_SERVICE_ADDR=finman-user-service:8081
- If services fail to connect, ensure Docker containers are running and ports are accessible.
- Check network configurations (
docker network ls
) to ensure services are on the same network.