What is your go-to stack for a classic business web site ? for a Saas ? for a landing page ? for [whatever you do here] ?
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.
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.
PHP has many stable frameworks if you are in to that and if you don't want to use a framework you can run vanilla PHP without a problem.
Dependency management is done these days with composer and it is easy add a dependency, like framework or library, from composer.
PHP has has lot of good tooling like IDEs, linters, testing etc.
Here is a short intro to PHP I wrote a few years ago.
Backend: Spring Boot (Java or Kotlin depending on solo vs cooperation)
Frontend: React ("https://hilla.dev/" looks interesting, might try that next)
Database: Postgres
We used PHP/Laravel for developing a scientific SaaS prototype [1] and Python/Django for teaching web application development [2]. For documentation (including teaching materials, blogging), we had a preference for static site generator (Jamstack) solutions: we used Sphinx and later switched to MkDocs [3, 4].
[1] https://group.miletic.net/en/publications/#2021
[2] https://group.miletic.net/hr/nastava/kolegiji/PW/#vjezbe
[3] https://group.miletic.net/en/blog/2017-07-29-why-we-use-rest...
[4] https://group.miletic.net/en/blog/2021-08-16-markdown-vs-res...
So far I've been loving it. Simple and easy to get started with. Everything works so well togther and is really easy to deploy as a single executable which can include any asset files with the `//go:embed` directive.
We also have many internal tools in R/Shiny.
[1] https://devblogs.microsoft.com/dotnet/performance-improvemen...
I also use Nim for when I need high-performance code, which can be utilized as a Node.js add-on using Denim.
Sequel: The Database Toolkit for Ruby [1]
Front end could be anything including no javascript. Roda makes it very easy to either write APIs or server rendered partials.
I love the simplicity, clarity and performance of this stack.
htmx for frontend, using the built-in kit htmx module.
Previously I used Clojure, re-frame and websockets using sente. It is very productive, but now I prefer the lightweight feeling of htmx.
Recently HTMX has been a really nice addition, adding some fanciness without writing more JS.
Some bits are just easier to do as full on JavaScript components and for those I use React because I know it and it does the job. Just for bits though (often as small as one component in a otherwise vanilla Django form), SPAs are a pain to write and maintain.
I have a SaaS so that’s mostly what I’m doing.
[0] https://pyapi-server.readthedocs.io
If I were working on a website that needed a backend, I would use htmx and either flask or Django.
One language, one tooling, one set of models etc across the entire stack is just so much nicer.
And you never have to worry about performance, scalability or lack of libraries.
Services I tend to start with Flask, Celery, redis and build from there.
If you're building for fun, whatever you want!
Ask HN: If you were to build a web app today what tech stack would you choose? https://news.ycombinator.com/item?id=38059036 (92 points by russianbandit 3 months ago | 208 comments)
Ask HN: What does your self hosted stack look like? https://news.ycombinator.com/item?id=37164315 (52 points by LorenDB 5 months ago | 41 comments)
Ask HN: Which stack is as boring (good boring) and cheap in 2023 as PHP? https://news.ycombinator.com/item?id=35112481 (38 points by alentred 11 months ago | 46 comments)
Ask HN: What would be your stack if you are building an MVP today? https://news.ycombinator.com/item?id=34530052 (459 points by nvln on Jan 26, 2023 | 727 comments)
Ask HN: Solo Dev Stack of 2022? https://news.ycombinator.com/item?id=33046696 (40 points by jstummbillig on Oct 1, 2022 | 81 comments)
Ask HN: Help me pick a front-end framework https://news.ycombinator.com/item?id=32799003 (141 points by bjackman on Sept 11, 2022 | 177 comments)
Ask HN: Web frameworks – which less popular frameworks are you using and why? https://news.ycombinator.com/item?id=31607256 (84 points by vanilla-almond on June 3, 2022 | 147 comments)
Ask HN: What tech stack would you use to build a new web app today? https://news.ycombinator.com/item?id=29626371 (48 points by gt565k on Dec 20, 2021 | 73 comments)
Ask HN: Which tech stack is the most fun? https://news.ycombinator.com/item?id=29625165 (100 points by chickenWing on Dec 20, 2021 | 184 comments)
Ask HN: Simplest stack to build web apps in 2021? https://news.ycombinator.com/item?id=29311761 (99 points by yblu on Nov 22, 2021 | 188 comments)
Ask HN: Which stack for prototyping? https://news.ycombinator.com/item?id=26851533 (57 points by tbronchain on April 18, 2021 | 99 comments)
Ask HN: Fastest/easiest framework to build a web application in 2020? https://news.ycombinator.com/item?id=22161880 (77 points by ryanSrich on Jan 27, 2020 | 89 comments)
Ask HN: What tech stack would you choose for building your next app? https://news.ycombinator.com/item?id=21807469 (39 points by _fwu1 on Dec 16, 2019 | 52 comments)
Ask HN: Go-to web stack today? https://news.ycombinator.com/item?id=18829557 (542 points by capkutay on Jan 5, 2019 | 443 comments)
Ask HN: What stack would you use to build a CRUD web app in 2018? https://news.ycombinator.com/item?id=16508965 (189 points by xstartup on March 3, 2018 | 178 comments)
Ask HN: What tech stack would you choose for a serious, long-term business app https://news.ycombinator.com/item?id=16763981 (44 points by bballer on April 5, 2018 | 78 comments)
Ask HN: Which stack do you use at your startup? https://news.ycombinator.com/item?id=16390851 (88 points by xstartup on Feb 16, 2018 | 126 comments)
Ask HN: What language/framework do you plan to use in your next project? https://news.ycombinator.com/item?id=14864389 (119 points by _pfxa on July 27, 2017 | 258 comments)
Ask HN: Starting a project today, which web framework would you use? https://news.ycombinator.com/item?id=14391951 (94 points by betimd on May 22, 2017 | 155 comments)
Ask HN: What web framework do you use? Why did you choose it? https://news.ycombinator.com/item?id=13254051 (71 points by moraya-re on Dec 25, 2016 | 118 comments)
Ask HN: What is a “boring” web stack? https://news.ycombinator.com/item?id=12866695 (51 points by stevetodd on Nov 3, 2016 | 48 comments)
Ask HN: What are the best web tools to build basic web apps as of October 2016? https://news.ycombinator.com/item?id=12774616 (114 points by arikr on Oct 23, 2016 | 82 comments)
- "vanilla" React (no Next.js or any other framework-y bloat)
- MUI
- React Router (v5 because v6 is a pain)
Backend:
- Node
- Typescript
- Express
- Prisma or Sequelize
- Sometimes Django/DRF in lieu of the above
- MySQL or Postgres
Deployment:
- KISS principle: one Digital Ocean droplet, no serverless or any of that
CSS or SCSS depending on complexity
If it's something that needs logins or more common features I'll usually switch to rails it just gets all the tedious stuff out of the way!
I’m looking forward to seeing Rails 8 in action, as is going to make building PWAs easier.
I don’t know why more people don’t use mithril
When I got more serious at one point in my life I used BBEdit.
I found Firefox's development tools very useful as well.
it has increased my speed to market massively. I mostly work on enterprise CRUD apps so getting things like SSO and API for free on Supabase is a great time saver
and then some apps require more specialized functionality and for that I’ll leverage the AWS stack
React frontend
Personal use:
- OpenWrt
- Hiawatha webserver
- PHP
- SQLite if really necessary
Work:
- not my decision