Python Microservices Web App (with React, Django, Flask) – Full Course

Wordpress sites

Using Python microservices allows you to break up your apps into smaller parts that communicate with each other. This can make it simpler to scale the application based on the traffic. Also, the separation of concerns makes it easier to work on just one part of the app at a time.

💻 Code – Python Microservices:
💻 Code – React:

✏️ Course developed by Scalable Scripts. Check out their channel:

⭐️ Course Contents ⭐️
⌨️ (0:00:00) What are Microservices?
⌨️ (0:02:29) Project Introduction
⌨️ (0:05:29) Django Setup
⌨️ (0:06:31) Adding Docker Files
⌨️ (0:12:32) Connect Django with MySQL with Docker
⌨️ (0:19:12) Models & Serializers
⌨️ (0:23:11) Rest APIs with ViewSets
⌨️ (0:35:07) User Endpoint with APIView
⌨️ (0:37:53) Flask Setup with Docker
⌨️ (0:42:13) Connect Flask with Mysql
⌨️ (0:44:00) Models
⌨️ (0:47:41) Flask Migrations
⌨️ (0:51:44) RabbitMQ
⌨️ (0:52:15) Django Producer and Consumer
⌨️ (0:57:54) Flask Producer and Consumer
⌨️ (0:59:25) Queue Service
⌨️ (1:04:18) Data Consistency
⌨️ (1:14:36) Internal Http Requests
⌨️ (1:18:06) Finishing the python apps
⌨️ (1:25:51) React Setup
⌨️ (1:42:04) Products CRUD
⌨️ (2:08:44) Completing the Main App

⭐️ Special thanks to our Champion supporters! ⭐️
🏆 Loc Do
🏆 Joseph C
🏆 DeezMaster

Learn to code for free and get a developer job:

Read hundreds of articles on programming:

And subscribe for new videos on technology every day:

34 thoughts on “Python Microservices Web App (with React, Django, Flask) – Full Course”

  1. Amazing tutorial by Scaling Scripts. Keep up the good work. I am learning a lot. One request, can future tutorials also show the best development practices used in enterprises. Like unit testing, how to organize the code etc. This will give a solid foundation. Just a suggestion. This end2end tutorial is awesome anyways.

  2. One of the best microservice tutorial in python till date….I have been waiting for any such tutorial for soo long….great work done…

  3. Hey, great course thank you!

    I have one problem, I can’t get the logs from the queue container in the main app to show the events of creation/updating/deleting a product. The db gets updated but I don’t see the events and my print statements in the terminal. only db_1 and backend_1 logs. What can I do?

    1. Had the same issue.
      Make sure your ENV variable in the Dockerfile is called “PYTHONUNBUFFERED” and set to 1.

  4. Great video! Learnt a ton out of it! Thanks!

    One comment for my understanding though…

    Maybe I’ve missed something but at 2:09:56, the fetch() call in useEffect() of Main.tsx is sent to the Main/Flask App: ‘localhost:8001/api/products’. However, the flask app does not keep likes in its db, so the number of likes is not received back and is not reflected on the ‘localhost:3000’ page; and on hitting the Like button, ‘NoN’ is shown instead of a number.

    After changing the port in that fetch() to ‘8000’, which makes the GET sent to Admin/Django instead, the likes on localhost:3000 work ok.

    Also, the number of likes in the Admin/Django db may mismatch such number on the localhost:3000 on hitting the Like button many times, because the Django app will not increment it for a repeated user id – product id pair while the number of likes on the page is incremented irrespectively. This can easily be tweaked, I think.

  5. I wish my boss knows just a little bit of programming, especially CRUD operations. His motto is “You should make a website that even a child can also use”. He expects all CRUD to be done in one single page for a list of different fields that can all have CRUD operations. After I finished that project, I felt sick and satisfied at the same time.

    1. Only technology people should deal with tech business. 😂These idiots make life hell..they can even ask to make a person alive after death by creating the some website

  6. It’s a good tutorial but I came to realize that it has a bit of coupling… when the django app goes down or when a message is sent and fails to reach the consumer in the flask app..the message might get lost and thus not updating the user table

    1. Andrés Peña Castillo

      I think it’s part of the demonstration and made on purpose, otherwise all the communication would be done 100% via RabbitMQ

  7. Priyanka Sharma

    Very descriptive tutorial. Thanks you so much. Can someone tell me IDE used ?

    1. Adal Alexander

      @j33p guy Yes, you are right. The IDE used is JetBrains PyCharm.
      At first I thought it’s Visual Studio Code, until he configured the first DB using the Database option that PyCharm has on the right side of the IDE window.

  8. Abhishek Arora

    This seems to be amazing video. I was looking exactly for this kind of material. Thank you!

  9. Andrés Peña Castillo

    You gave me back hope to return to my college career in software engineering after 5 years with this real life demo of Docker!

  10. Srison Kadariya

    Thank you for this amazing course! Could you please release another course with authentication for microservices using JWT?

  11. Great tutorial, but around 1:02 when you run the container its very important to run python -u consumer.py and not python consumer.py
    This disables buffering in the output. what that means is instead of waiting for a finished output, it asynchronously outputs values

  12. came to learn about microservices, ended up with way way more valuable things. thanks man!

Comments are closed.