I made a Flask + MySQL + Bootstrap + Docker template, fully integrated with Stripe subscriptions
After looking for a Flask template that seemed like a fully scalable solution, I was disappointed. As any programmer could, I decided to start making my own about 1 month ago.
Code: https://github.com/casperbh96/Flask-Stripe-MySQL-Bootstrapped
I went with a microservices architecture, where one service is responsible for a limited scope of operations. It's basically built like an API in the backend, where each service need to make a request to one of the other services. This is really nice, because it enables you to scale endlessly with Kubernetes - you just scale horizontally or vertically.
This idea originally started by me wanting to make a SaaS template specifically for Machine Learning (ML) apps. But then I realized that I just needed to make a general template that anyone could use, because you can't really make a template specifically for ML.
I tried to keep the code as clean and readable as possible, but there is likely some slipups where I'm not consistent. Any issues or pull requests are welcome.
Let me know if you have any feedback, or if you think this is useful!
Posted Jan 19, 2020, 12:20 AM UTC