Ask HN: What is your go-to stack for the web?
Going back to the web after 10 years, I'm summoning
the HN wisdom.
What is your go-to stack for a classic business web site ? for a Saas ? for a landing page ? for [whatever you do here] ?
What is your go-to stack for a classic business web site ? for a Saas ? for a landing page ? for [whatever you do here] ?
73 comments
[ 4.3 ms ] story [ 157 ms ] threadBackend: Spring Boot (Java or Kotlin depending on solo vs cooperation)
Frontend: React ("https://hilla.dev/" looks interesting, might try that next)
Database: Postgres
If you're building for fun, whatever you want!
Services I tend to start with Flask, Celery, redis and build from there.
I don’t know why more people don’t use mithril
We also have many internal tools in R/Shiny.
I also use Nim for when I need high-performance code, which can be utilized as a Node.js add-on using Denim.
React frontend
UI: Django templates, htmx, tailwind, vanilla js or hypersceript, no build, no node, no npm. Avoiding writing js as much as possible.
Background workers: RQ with 3 priority queues
Deployment: Kamal one command deployment with underlying docker
Hosting: Linode server with backups
Storage: Mounted volume on the machine (maybe s3 eventually).
Benefits:
* High speed of iteration
* No boilerplate mess
* No build therefore no dealing with dependencies and npm rabbithole
* Fast deployment with Kamal (a bit of learning curve but once up just works)
* Much cheaper compared to PaaS. At least 50%.
* Multiple websites on the same instance
Of course I know django quite well so the goal is to remove as much friction as possible.
Then we used a common and popular programming language to make them all work together.
It was compatible with everything. Worked everywhere. Interfaced with everything. And was as fast as hell.
No additional thinking or learning required.