Lurker News
As a long time software developer who hasn't done full stack in awhile (since 2013), what's everyone's go to web hosting stack today? Wanted to quickly put together a simple website with react/node.

Comments (441) 141 threads

Earlier comments
epynonymous#
golang backend restful api, websocket service, frontend some client side SPA or static pages. database + redis for k/v and queuing, for heavy duty stuff rabbitmq.

the nice thing about golang is that i don't need containers because my runtime package is basically a binary, golang is great about cross compiling for various platforms, too. when i used ruby or python, i'd have to package up all the dependencies and even get the runtime interpreter installed while using some tools like rbenv, etc. really, really annoying.

kethinov#
Whichever stack you choose, make sure it outputs semantic HTML, has good accessibility, and progressively enhances the user experience. Avoid creating any unnecessary JavaScript dependencies.
karmakaze#
This is something that I've been pondering since reviewing the number of languages and frameworks I sampled in 2018. Time to pick winners.

Back-end:

  - backendless if possible (e.g. use GraphQL, Firebase, etc)
  - minimal (1:1 with document store):
    PostgreSQL/JSONB, FoundationDB, MongoDB, RethinkDB, CouchDB(mobile-sync)
  - relational: PostgreSQL(master/replica), MySQL(multi-master), CockroachDB/TiDB (sharded)
    languages: Elixir(Phoenix), Kotlin/Java(Javalin), Clojure(Liberator), Go, Kemal(Crystal)
Front-end:

  - HTML+JS using Phoenix/LiveView (or Vaadin?)
  - Vue.js (possibly Elm) for SPA
Runners-up:

  Spring - slow startup, JPA/Hibernate quirks, latency spikes (gc? of JPA/Hibernate)
  Micronaut - could be the next big thing (too much like Spring, learning curve)
  Ktor - coroutine support potential interesting, prefer a Kotlin+Java ecosystem
  SparkJava - too bare (used with Sql2o), Javalin is a spiritual successor
  DropWizard - older, poor documentation. But JDBI is sweet to use with other microframeworks
  Amber (Crystal) - Kemal has a much faster edit/compile/run cycle
  Rails/Sinatra/Web2py/Django/Flask/etc - prefer static typing and faster/smaller runtime
This is obviously still too long a list. Continue testing and culling.
georgecalm#
- nuxt (or next if you prefer react) - tailwind (atomic css)

- node - express - passport (Use cookie based auth keeping the session in your storage. I wouldn’t waste time on JWT. There’s a decent amount of complexity if you want both the security of being able to revoke access to a bad actor and the convenience of long lived sessions, and at the end the auth server will most likely need to access storage and use cookies for that anyway (eliminating the benefits of JWT). So I’d start with cookie based auth and build up complexity as needed.)
- postgres - On the Node side, I don’t recommend adding the complexity of an ORM at first (or ever). The node pg driver will give you arrays of objects back for rows. It’s convenient enough not to need the extra overhead of an ORM. - As a side note, Postgres has modules for you to implement a decent first version of a lot of things, such as search for example, before you need to reach for a dedicated solution. This makes it amazing for startups in my opinion, as you can explore ideas very quickly.
- statsd / grafana (to monitor your app and learn from the behavior of your users)
- docker-colpose.yml to make spinning up your dev environment with node / db / stats as simple as “docker-compose up”
- DigitalOcean for hosting - Use their dokku image - Set up daily backups to Spaces since your DB will be hosted here at first too
- dokku for deployment with the Postgres, letsencrypt and grafana modules - deployments are as easy as “git push master dokku”

Load more comments