This project provides an HTTP gateway with a gRPC backend implementation. It allows you to interact with the backend services using HTTP requests.
These instructions will help you get the project up and running on your local machine.
- Docker: Make sure you have Docker installed on your system. You can download Docker from the official website: https://www.docker.com
- Clone the repository:
git clone https://github.com/jeferagudeloc/grpc-http-gateway.git
Navigate to the project directory:
cd grpc-http-gateway
Build and run the containers using Docker Compose:
docker-compose up --build
The HTTP gateway service will be accessible at http://localhost:8080. The React app will be accessible at http://localhost:3000.
The project follows a typical directory structure:
src/server: Contains the implementation of the gRPC backend server.
src/gateway: Contains the implementation of the HTTP gateway.
src/ui: Contains the portal for test the gateway.
The project uses Docker Compose for container orchestration. The services and their configurations are defined in the docker-compose.yml file.
server: Builds and runs the gRPC backend server.
gateway: Builds and runs the HTTP gateway service.
mysql: Runs the MySQL database server.
web: Runs the web server
The environment variables for the services can be configured in the docker-compose.yml file.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.