We've achieved our goals already with this series: we have a web service written in Rust, built into a Docker image with nix, with a nice dev shell, that we can deploy to fly.i...| fasterthanli.me
There it is. The final installment. Over the course of this series, we've built a very useful Rust web service that shows us colored ASCII art cats, and we've packaged it with...| fasterthanli.me
In the previous chapter, we've made a nix "dev shell" that contained the fly.io command-line utility, "flyctl". That said, that's not how I want us to define a dev shell. Our cu...| fasterthanli.me
Remember the snapshot we made allll the way back in Part 1 ? Now's the time to use it. Well, make sure you've committed and pushed all your changes, but when you're ready, let'...| fasterthanli.me
I sold you on some additional functionality for catscii last chapter, and we got caught up in private registry / docker shenanigans, so, now, let's resume web development as p...| fasterthanli.me
Wait wait wait, so we're not talking about nix yet? Well, no! The service we have is pretty simple, and I want to complicate things a bit, to show how things would...| fasterthanli.me
Disclaimer: Because I used to work for fly.io, I still benefit from an employee discount at the time of this writing: I don’t have to pay for anything deployed there for now. fly.io is still sponso...| fasterthanli.me
Now that our service is production-ready, it’s time to deploy it somewhere. There’s a lot of ways to approach this: what we are going to do, though, is build a docker image. Or, I should say, an OC...| fasterthanli.me
Our catscii program does everything we want it to do, except that it’s a command-line application rather than a web server. Let’s fix that. Enter axum The documentation for the axum crate tells us ...| fasterthanli.me
Now that our development environment is all set up, let’s make something useful! Creating the catscii crate From a VS Code window connected to our VM (as we just set up), let’s make a new Rust proj...| fasterthanli.me
With the previous part’s VM still running, let’s try connecting to our machine over SSH. Network addresses, loopback and IP nets Normally, to connect to a machine, you’d find its IP address. On Lin...| fasterthanli.me