Building a Rust service with Nix
I often give bits and pieces of advice on how to build Rust stuff the comfy way. But it can be hard to see how everything comes together, especially when it comes to, say, deploying a web service in production.
So, let’s start from the very beginning (setting up a Linux VM), and march together towards the objective: a production-grade Rust web service, built with Nix.
12 parts
- 1 Setting up a local Ubuntu Server VM 10 min
- 2 Developing over SSH 14 min
- 3 Printing ASCII cats to the terminal 20 min
- 4 Serving ASCII cats over HTTP 18 min
- 5 Writing a Dockerfile for catscii 15 min
- 6 Deploying catscii to fly.io 10 min
- 7 Using the Shipyard private crate registry with Docker 17 min
- 8 Doing geo-location and keeping analytics 11 min
- 9 Learning Nix from the bottom up 25 min
- 10 Making a dev shell with nix flakes 16 min
- 11 Generating a docker image with nix 16 min
- 12 Extra credit 9 min