HACKER Q&A
📣 asimjalis

How to build minimal login and payment for web app?


What is the easiest way to build a minimal product that has a way to have users sign in and pay a monthly subscription? Let’s say we want to do this in Python. To make this more concrete suppose I want to monetize a function hello(name) that takes a string and prints out "Hello, " + name + "!". What is the easiest way to build the subscription and payment infrastructure? Is there a SaaS that solves this problem?


  👤 Jugurtha Accepted Answer ✓
I'll be doing that as well for our internal machine learning platform. I'll use Stripe, but it doesn't accept Algeria, so we'll use our accounts in France.

You can use Flask Login[0] for the login part and I hope you live in an area that payments services support.

- [0]: https://flask-login.readthedocs.io/en/latest/


👤 trcarney
Django has the sign in stuff built in and stripe can provide the payments quickly, they even provide the payment forms.

👤 soulchild37
For Ruby/Rails, there's https://jumpstartrails.com and https://bullettrain.co that handles these for you so you can focus on coding the core functionality.

👤 varlogix
I think Laravel framework for PHP has something called Spark which provides this.

https://spark.laravel.com/


👤 kleer001
Please don't build one yourself for actual commercial use. Please rely on established ones for that. Otherwise it's a great exercise.