This is an example project which demonstrates the use of microservices. Our backend is powered by 4 microservices, all of which happen to be written in Python using Flask.
- Movie Service: Provides information like movie ratings, title, etc.
- ShowTimes Service: Provides show times information.
- Booking Service: Provides booking information.
- Users Service: Provides movie suggestions for users by communicating with other services.
You may find below the list of the frameworks/libraries that we used to build this demo project :
To get a local copy up and running follow these simple example steps.
You may find below the list of things you need to use this project :
- Make sure python is installed on your system.
- You will need to install docker.
In order to install the app you need to follow the instructions below :
-
Clone the repo
git clone https://github.com/ahlem-phantom/flask-microservices-kong.git
-
Dockerize the application :
docker-compose up
-
Open localhost:8000 in the browser and that's it you can use microservices 🎉!
To get started, I want to get my bookings so all I have to do is to type localhost:80/bookings/bookings. Kong service will check if the bookings microservice exists and then will get the bookings from the bookings microservice.
Display: