Murmur, a Twitter-style social network built to learn system design: a Go backend with Redis timelines, a job queue on Postgres, rate limiting, live updates and Prometheus metrics, then a React web app behind nginx. Each episode has its own branch.
docs: README with the episode branches, and the MIT license
git clone https://github.com/dev-marker/murmur.git
cd murmur
git checkout ep01 # the code at the end of episode 1, where episode 2 begins
main holds the latest episode plus this README.
The Go module is named github.com/fiston-user/murmur, as typed in the videos. It's only a name: everything builds
and runs from this clone as is.
Episodes 1 to 16 are the backend. Episodes 17 and 18 add what a client needs from the API, and 19 to 26 build the
web app in web/ and put it behind nginx.
You need Docker and make. Go 1.26 is needed for make seed, make run and make test, and Node.js with npm for
the web app (the course used Node 26).
make up && make seed # the whole system, and 100,000 users with a realistic follow graph
make web # build the web app into web/dist, served on http://localhost:8088
In that order: until make web has run, port 8088 answers 404. Sign in with a seeded key, seed-token-N for
userN (try seed-token-16726, a quiet account), or create an account.
make test # the Go tests (needs make up)
make load S=feed # a k6 load test, run in Docker
make web-dev # the web app with hot reload, on http://localhost:5173
make down # stop everything (the data stays in its volume)
The Makefile has a comment above every target, and web/README.md explains how the web app is
organised and why.
Older branches run with less: on the first episodes make up starts only Postgres and make run starts the API on
http://localhost:8081. Redis arrives in episode 4, the worker in episode 6, and from episode 14 everything runs in
Docker Compose behind nginx.
MIT, see LICENSE.