A Python-based microservices application that allows searching for meal based on categories and view search history.
Django Rest Framework: Built an api using django rest framework for searching meal which retrieves meal data from an external api.
Flask: Built a Flask application to display previously searched meal categories, allowing users to view their search history.
PostgreSQL: Used PostgreSQL as the database for each service, storing meal search data and user history in separate databases.
RabbitMQ: Implemented RabbitMQ as a message broker to facilitate asynchronous communication between the Django and Flask services.
Nginx: Configured Nginx as a reverse proxy server to route client requests to the appropriate backend service.
Docker Compose: Used Docker Compose to manage and run all services in isolated containers.
- Clone the Repository
git clone https://github.com/SA-K1B/python_microservices_drf_flask.git
- Navigate to the project directory
cd python_microservices_drf_flask - Build Image
docker compose build
- Start the services
docker compose up -d
Now, the app will be available at https://localhost:8080