Lurker News
Specifically the backend. I'd love to hear your reasons. Do you keep one eye on what the stack would be post MVP?

1. Old schoolish (VPS - Maybe DO, Django/Flask/Rails/Remix/Next with postgres)
2. Supabase etc with JS/TS on either side of the network
3. Lambda/Cloud functions with Firebase/Dyanamo DB/Cosmos DB etc
4..n. What else and why?

Comments (723) 347 threads

Earlier comments
davidkuennen#
Database: Postgres

Backend: Go
Frontend: React
App: Flutter

redbar0n#
I'd likely go for a mobile first approach and start with:

create-universal-app : https://github.com/chen-rn/CUA
Which would give me: - Tamagui - React Native Web Lite - Expo - Next - Solito - Prisma – Clerk - tRPC
But I'd likely throw out Clerk for a cheaper option:
- Supertokens, since it's also easy (lots of enthusiastic reports about it), has a managed solution (which is cheaper than the alternatives), is secure and scalable (rotating refresh tokens with JWTs), open source, offers passwordless / magic links, and the architecture of Supertokens would allow me to simply and quickly eject to self-hosting it if/when I'd eventually need to (if the app ever reaches mass-market scale).
And I might throw out tRPC for the equivalent GraphQL and TypeScript inference experience (esp. if business strategy dictates I need a 3rd party API):
- GQty.dev on the client, for inferred queries/mutations. For rapid dev speed. Simple code example: https://gqty.dev/docs/intro Then move to URQL or Relay at scale, or just skip GQty and go with URQL from the start (if scalability trumps dev speed).
- Pothos http://pothos-graphql.dev on the server, for auto building the schema from your TS code (aka. code-first). Better than Nexus (e.g. Max Stoiber moved from Nexus to Pothos on his Bedrock starter template because Pothos is best in class: https://bedrock.mxstbr.com/tools/pothos/ ).
And I might throw out NextJS (Webpack) for the equivalent experience in Vite:
- vite-plugin-ssr, since both architectural control (libraries > frameworks) and Vite rocks. I'd likely then have to make solito-vite https://github.com/nandorojo/solito/discussions/157 to have a unified navigation between React Native and Web, but Solito is allegely tiny, so recreating it should be doable.
(If doing all of these replacements, maybe starting from scratch would be easier than modifying create-universal-app ... That said, I think if someone made a starter repo with the above choices it would be a real killer!)
Then I'd also likely use:
- Vercel (and try their Edge Functions, for a serverless sweet v8 isolates experience without slow cold starts), or maybe Cloudflare Workers (cheaper, slightly more hassle?) for hosting.
- Planetscale or Supabase for the DB. (Not brave enough to try EdgeDB or SurrealDB just yet, though EdgeDB is close..) Unless I had a specific use case where a more specialized/optimized DB would make sense.
This stack should stick even post-MVP, as it's not only optimized for a solo developer but for scalability.

KronisLV#
Hosting: probably one of the more affordable VPS providers out there, like Contabo, Hetzner, or in my case Time4VPS. Homelab servers (just boxes with Debian/Ubuntu) for dev/testing environments at first. Probably some popular OS like Ubuntu for the remote servers as well, just because of how easy such a setup is to get from any provider.

Runtimes: OCI containers with Docker, there are other options out there as well, but this one is stable and boring, plus makes deployments easy. Probably at least something like Docker Compose or maybe Docker Swarm (more or less uses the same format) to orchestrate stuff across multiple nodes and take care of networking, if needed. Maybe Portainer for easier management. Can later move to Nomad or Kubernetes if needed, but the previous options are good enough.
Databases: probably MariaDB/PostgreSQL for relational data, if needed then MongoDB as a document store, MinIO (S3 compatible) for any larger binary blobs, Redis for key-value storage and RabbitMQ for queues. Admittedly, in most cases you won't need that much more than just a single relational DB instance, unless you have particular workloads to deal with. Honestly, even SQLite can be a good starting point for a single node deployment.
Back end: honestly, any of the most popular languages out there. Java (either Dropwizard or Spring Boot) or .NET (ASP.NET) for good performance and rich ecosystems, Go for small statically linked executables, Python for packages to do basically anything (most likely Flask/Django in webdev), Ruby for particular CRUD setups (with Rails), Node (most likely with Express.js) for getting up and running relatively quickly. Personally, I'd opt for static type systems when not in too much of a hurry, but also recognize the benefits of any of the options listen. Frankly, they're all good enough, so just pick whatever feels suitable for the problems you want to solve. Even PHP with Laravel is viable nowadays.
API design: probably something RESTful, though some like GraphQL (personally, I think that it brings a certain amount of complexity with it), in rare cases would also go for something like gRPC or also WebSocket stuff, though again it depends on what you're building.
Front end, server side rendering: if you decide not to make a RESTful API but are okay with server side rendering (certain Django, Rails, Laravel setups, for example), then you won't have to think about this too much. In those cases, I'd just throw in something like Bootstrap and maybe something to make dealing with JS easier.
Front end, SPA: However if you're building a SPA (which is great because you can swap out front ends or use it for other stuff, not just the current UI) then I'd recommend you look in the direction of Vue 3 + a component framework/library like PrimeVue. Angular does TypeScript really well but is cumbersome to work with, React seems to get more and more complex with every release, whereas Vue does everything from hooks to recommended state management solutions (like Pinia) well and without too much accidental complexity. I'd pick the component framework/library because making your own is sometimes a waste of time. I'd consider TailwindCSS, but not always.
Web servers: personally I'd go with Apache for my own reasons (modules for most stuff), but Caddy is also excellent. Nginx is also good, but doesn't do ACME certs out of the box, although setting up certbot isn't too hard. I've written on my blog about using Apache, actually: https://blog.kronis.dev/tutorials/how-and-why-to-use-apache-... and about Nginx as a reverse proxy.
Day 2 concerns: I'd also look into Matomo analytics if the MVP gets popular, as well as Zabbix for server monitoring, Uptime Kuma for uptime monitoring, maybe way later something like Graylog for log shipping and Apache Skywalking for APM/tracing. For managing nodes, Ansible can be a good bet later.
So it might look like: Ubuntu + Docker + MariaDB + Ruby + Rails.
It might also look like: Ubuntu + Docker + PostgreSQL + Node + Express.js + REST + Vue + PrimeVue.
Or any other number of combinations. It's hard to go completely wrong nowadays. Cloud options are also nice, but personally I like being able to run basically the same thing both locally and on a server somewhere. Actually, I had a somewhat related blog post about this, "How boring or novel should your technology choices be", too: https://blog.kronis.dev/articles/how-boring-or-novel-should-...

traverseda#
Depends on exactly what I'm making, the answer is probably different if I'm making like a chat app or something more data centric.

For something really minimal, an internal tool, I'd probably use grist. Grist is a "no code" spreadsheet program that is open source and works on a relational database. I just threw together an inventory management system for my weekly dnd group in a few minutes, and I've shared it with the group. I find the relational mindset grist uses a lot easier to reason about than traditional spreadsheets.
The next level up would be django with htmx. Very minimal javascript, I might embed a javascript "applet" like a map into it if needed. This covers 99% of data driven apps.
If I wanted to build something like say discord I'd probably use a pretty similar stack for the MVP, but with server-sent-events (htmx with server sent events is nice) and web components for more complicated interactions. That's probably why I'm not in charge for building complicated single page webapps with a lot of interdependent state though. I maintain this approach should work but haven't had a real chance to test it in the wild.
If I'm writing CAD software I'm probably going with QT/python/(numpy/jax/compute-shaders/sympy/etc). Python might not be the fastest, but when you're accelerating it with one of those machine learning libraries it can be really powerful. I've actually been working on something CAD-ish using that stack here: https://github.com/traverseda/PySdfScad
That's probably roughly the same stack I'd use for things like computer vision, machine learning, etc. Ironically anything where performance is important I'd probably choose python over a compiled language.
Mind you the QT python documentation is really not great, for a really minimal MVP I might swap qt out for pyimgui which is amazing for rapid prototyping but is going to be a real pain to do things like syntax highlight a text editor or embed HTML content.
Embedded electronics? Probably micropython on an ESP32 for an MVP. A REPL on your microcontroller is really nice. Robotics I'd probably use buildroot to build a custom linux distro. ROS is pretty heavy and I find it gets in the way a lot, but if you need ROS stuff obviously use ROS.
I don't have much experience with mobile development, so I'd probably end up using QT with python and pyqtdeploy, but that's not an approach I'd recommend anyone else follow. I'm keeping an eye on Tauri in that space, although I really wish they made it easier to bundle in things that aren't single page javascript web apps (like a python application).
So yeah, mostly I'd use python. Master of some trades, jack of a bunch of others, it's flexible and powerful enough that I feel happy to have specialized in it, even if deploying apps to end users can be finicky and annoying. I'd avoid the javascript ecosystem as much as possible, and where I'd have to use javascript I'd prefer to make self-contained web components.

Load more comments