This project demonstrates the implementation of an API Gateway using Flask.
/client
: Contains the client-side code or frontend scripts that interact with the API Gateway./server
: Hosts the Flask application which acts as the API Gateway, routing incoming API requests to the designated service.
- Flask: A lightweight WSGI web application framework, ideal for handling requests in a simple and extensible manner.
- Python: The primary programming language used in this project.
- Libraries: Essential libraries such as
requests
for HTTP requests.
- Python 3.6 or later
- pip for installing Python packages
- Clone the repository:
git clone https://github.com/ahmadrafidev/api-gateway.git
- Navigate to the project directory:
cd api-gateway
- Navigate to client-side directory:
cd client python3 -m venv env source env/bin/activate pip3 install Flask requests flask --app app run --port=8000
- Navigate to server-side directory:
cd server python3 -m venv env source env/bin/activate pip3 install Flask requests flask --app app run --port=5000