From localhost to the world — agent-operated infrastructure
Your app works on localhost. It looks great. But try sending the URL to a friend — you can't. localhost means "this computer, right here." To everyone else in the world, your app doesn't exist. This chapter fixes that.
You're going to rent a small server, point a domain at it, and deploy your Travel Bucket List for the world to see — with HTTPS, automatic restarts, and a proper setup. Your AI agent will operate the infrastructure directly: provisioning the server, SSHing in to configure it, and calling the Cloudflare API to set up DNS.
Your agent just connected to a remote computer via SSH and ran commands on it. This is the same thing a system administrator does — but instead of remembering arcane commands and flags, you described what you wanted in plain English. Infrastructure-as-conversation.
— from the exercise
What you'll build
Key concepts
What's covered
What just happened
The agent's role expanded. In Chapter 4, it wrote code. In this chapter, it operated infrastructure — provisioning servers, SSHing into remote machines, calling APIs, managing system services. The agent went from pair programmer to DevOps engineer.