Re:Show HN: The pure Python SaaS starter kit
by anyfactor on Monday May 01, 2023 @08:23AM
(#35771807)
Fantastic stuff. I hope someone finds use for it :)
I am a "Python Developer". I like building MVP and Proof of Concept (POC) projects and have been doing it for a while. I think that this project is intended for people like me who don't like touching anything frontend for a hobby or sideproject.
So, how do I go about building a SAAS.
VPS: $4-$12/month
- Write the core logic in Python
- Create somewhat of a plugin/module based environment. Each module does one thing exactly. You can add and upgrade modules without disrupting the core app. The core logic is centralized in a python script that just runs one module after another. I use pickle, and logging. Multithreading for running jobs.
- The core database is an SQLite DB. I am trying serverless DBs though.
- The hacky part is that I don't have an API. I communicate the info to firebase. Firebase takes care of the rest. For super complicated tasks I use email based alerts to user.
Firebase: Free
- Firebase gets data from VPS through the Python's firebase module
- Authentication, pricing, content delivery everything is firebase.
- I am using Nuxt. I am not using SSR because it conflicts with Firebase Auth. But Nuxt takes care of store, router and other stuff. I can set them up in Vue. But again, I am just lazy and this just works.
- Styling: VueBootstrap. It is a joy to use. Except for the treeshaking part. I just don't get treeshaking there and I convince myself it is an MVP it should be okay.
I dabbled with JAMstack for a while, that works too. Firebase Auth, google analytics and the stackoverflow answers is the reason, I switched. Now this is where I am bit apprehensive. I can script-kiddy myself out of a JavaScript jam, however it is very difficult to do with these newer only write Python stuff.
Nobody is incapable of writing JavaScript, but they are just lazy like me or don't use it as a first language basis like me. They just want to solve JavaScript problem without effort. Writing Python to write JavaScript adds a layer to the JavaScript problem.
I fear these solutions, may force me to explore edge cases where I have to actually write-write JavaScript as these technologies/tool/stack are niche and there are no one who have asked the questions before me and no one who have already answered them.
Again, I am not incapable of writing JavaScript, I just don't like writing it unless I get paid to do that.
I am a "Python Developer". I like building MVP and Proof of Concept (POC) projects and have been doing it for a while. I think that this project is intended for people like me who don't like touching anything frontend for a hobby or sideproject.
So, how do I go about building a SAAS.
VPS: $4-$12/month
- Write the core logic in Python - Create somewhat of a plugin/module based environment. Each module does one thing exactly. You can add and upgrade modules without disrupting the core app. The core logic is centralized in a python script that just runs one module after another. I use pickle, and logging. Multithreading for running jobs. - The core database is an SQLite DB. I am trying serverless DBs though. - The hacky part is that I don't have an API. I communicate the info to firebase. Firebase takes care of the rest. For super complicated tasks I use email based alerts to user.
Firebase: Free
- Firebase gets data from VPS through the Python's firebase module - Authentication, pricing, content delivery everything is firebase. - I am using Nuxt. I am not using SSR because it conflicts with Firebase Auth. But Nuxt takes care of store, router and other stuff. I can set them up in Vue. But again, I am just lazy and this just works. - Styling: VueBootstrap. It is a joy to use. Except for the treeshaking part. I just don't get treeshaking there and I convince myself it is an MVP it should be okay.
I dabbled with JAMstack for a while, that works too. Firebase Auth, google analytics and the stackoverflow answers is the reason, I switched. Now this is where I am bit apprehensive. I can script-kiddy myself out of a JavaScript jam, however it is very difficult to do with these newer only write Python stuff.
Nobody is incapable of writing JavaScript, but they are just lazy like me or don't use it as a first language basis like me. They just want to solve JavaScript problem without effort. Writing Python to write JavaScript adds a layer to the JavaScript problem.
I fear these solutions, may force me to explore edge cases where I have to actually write-write JavaScript as these technologies/tool/stack are niche and there are no one who have asked the questions before me and no one who have already answered them.
Again, I am not incapable of writing JavaScript, I just don't like writing it unless I get paid to do that.