From 'Works on My Machine' to Online
Your app runs on your laptop โ but nobody else can reach it. Deployment is the leap to running it somewhere always-on that the world can access. Here's the mental model.
You've built something real and it runs perfectly - on your laptop. But your laptop isn't on all the time, isn't reachable from the internet, and isn't meant to serve strangers. Deployment is the leap: getting your app running somewhere always-on that the world can reach. It sounds like dark arts, but the mental model is simple, and modern tools make it far easier than it used to be. This session frames what deployment actually is.
Why your laptop isn't enough
An app that only runs on your machine can't be a real service - for a few concrete reasons that deployment solves.
| Your laptop | A deployed app needs |
|---|---|
| Off when you close it | Always on (24/7) |
| Not reachable from the internet | A public address people can reach |
| One machine, your setup | A reliable server environment |
| 'localhost' - only you | A domain name anyone can visit |
Deployment moves your app to a <b>server</b> - a computer that stays on, is connected to the internet, and is set up to run your app for everyone. That's the essence: same code, but running in a place built to serve it to the world rather than just to you.
The deployment mental model
At heart, deploying is: get your code onto a server, install what it needs, and keep it running so requests reach it.
The leap to real
- Your laptop can't be a real service - not always-on, not reachable, just yours.
- Deployment puts your code on an always-on, internet-connected server.
- The model: code on a server + what it needs + kept running + a domain.
- Modern platforms automate most of it - but the model stays the same.
๐ฏ Key takeaways
- Your laptop can't be a real service: it's not always-on, not reachable from the internet, and set up just for you.
- Deployment moves your app to a server - an always-on, internet-connected computer built to serve it to everyone.
- The mental model: your code on a server, with what it needs, kept running, reachable at a domain.
- Modern platforms automate most of the steps, but knowing the model (code + server + address) demystifies any tool.
Frequently asked
What actually is a 'server' - do I need to buy a special computer?
A server is just a computer that's set up to stay on and respond to requests from other computers over a network - and no, you almost never buy or own a physical one yourself these days. While a server can be a physical machine, in practice when you deploy an app you rent computing capacity from a cloud provider or use a hosting platform, and your app runs on their machines in a data centre. What you get is effectively 'a computer on the internet that's always on', which might be a virtual server (a slice of a big physical machine, which is the common case), a managed platform that runs your app without you thinking about the machine at all, or other arrangements - but from your perspective it's a place to put your code that stays running and is reachable. The key properties that make it a server rather than your laptop are: it's always on (data centres have reliable power and connectivity), it's connected to the internet with a public address so requests can reach it, and it's configured to run your application and respond to those requests. You interact with it remotely (often via the command line over a secure connection, or entirely through a platform's dashboard), not by sitting in front of it. So you don't need to buy special hardware or run a machine in your house (you can, but almost nobody does for real apps because keeping a home machine always-on, secure, and reachable is a hassle); instead you rent from providers whose whole business is running reliable servers. Many platforms even have free tiers suitable for small projects and learning. The mental shift is from 'a server is a scary special machine I need to own' to 'a server is rented, always-on computing where my app lives so the world can reach it' - it's a service you use, and getting your code onto one is what deployment is about.
This sounds complicated. Is deploying really something a beginner can do?
Yes - deploying has genuinely become approachable for beginners, and while it involves concepts you're still learning, modern tools have removed most of the historical pain. It used to be that deploying meant manually setting up and administering servers - installing operating systems, configuring web servers, managing security, wiring everything together by hand - which was genuinely hard and a specialist skill. Today, platform services exist specifically to make deployment easy: many let you connect your GitHub repository and deploy your app with a few clicks or a single command, handling the servers, the running, and much of the configuration for you. For a simple app, you can often go from 'code on GitHub' to 'live on the internet' surprisingly quickly. That said, deployment does touch several concepts at once - servers, environments, configuration, domains, keeping things running - which is why it can feel intimidating as a whole, and why this course breaks it into pieces. The honest picture is: getting a basic app deployed on a modern platform is very achievable for a beginner and a hugely rewarding milestone (seeing your creation live at a real address is a thrill), while the deeper aspects (scaling, fine-tuning servers, complex infrastructure) are more advanced and something you grow into as needed. You don't need to master all of it to deploy your first app; you need enough understanding of the pieces (which this course gives you) plus a beginner-friendly platform that handles the hard parts. As with everything in this journey, the approach is incremental: understand the mental model, use tools that automate the difficult bits, deploy something small and real to experience the whole flow, and deepen your knowledge as your projects demand it. Deploying your first app is a very reasonable goal for where you are, and it's the step that turns your projects from things only you can run into real services others can use - a genuinely exciting and career-relevant capability that's more within reach than its reputation suggests. Start with a simple app and a friendly platform, and you'll surprise yourself.
Related lessons
Environments & Configuration
Your app runs in different places โ your laptop, a test server, production โ and each needโฆ
Deploying & Running Your AppGetting Your App Online
The practical steps: choose where to host, get your code there, point a domain at it, and โฆ
Build Your First Real ProjectTest, Harden, and Ship It
The last mile: make sure it actually works (tests), make it safe and solid, then get it ouโฆ