HOSTING / LESSON 02
What Is Hosting?
Where your app actually runs once it leaves your laptop, and how to choose a host

Loading the lesson…
Loading activities…
HOSTING / LESSON 02
Where your app actually runs once it leaves your laptop, and how to choose a host

Loading the lesson…
Loading activities…
Right now your app probably runs on exactly one computer... yours. Hosting is how it moves to a computer that's always on, always connected, and reachable by anybody who has the address. This lesson covers what a host does, where it sits in your app, and what to look for when you pick one.
When you run an app on your laptop, it lives at an address like http://localhost:3000. That address only works on your machine. Close the lid, lose Wi-Fi, or shut the computer down, and poof, the app is gone.
Real users need three things your laptop just can't give them.
myapp.comA hosting service gives you all three. It runs your code on computers in a data center and hooks them up to the internet for you.
Think back to frontend and backend. Every app has a part people see and a part doing the work behind the curtain. Both of them have to run SOMEWHERE.
The host is home base. Visitors show up there, and the code running on your host talks to all the other services you'll meet over the next few modules.
Most modern hosts connect to your GitHub repository. When you push new code, the host notices.
The host runs the same build command you'd run yourself, such as npm run build, and turns your code into something ready to serve.
The host starts your app on its computers and keeps it running. If it crashes, a lot of hosts will restart it for you.
You get a web address right away, and you can hook up your own domain name later.
Hosts show you logs, so you can see what your app is up to, and they let you roll back to an earlier version when a new one breaks.
That whole trip, from push to live site, is called a deployment. You'll do a bunch of them in this module.
Hosts come in a few shapes. The two you'll meet here show the main split.
| Style | What It Means | Good For |
|---|---|---|
| Always-on server | Your app runs continuously on a server you rent | Backends, APIs, background jobs, apps with a database next to them |
| Frontend and serverless | Pages are served from a global network, and backend code runs only when a request arrives | Websites and Next.js apps, especially ones with lots of pages |
Is one style better? Honestly it depends on the app, and plenty of projects use one of each. Our own stuff is a good example. Seedly Sites deploys to Cloudflare Pages, while Seedly CRM is source code the owner deploys on infrastructure they control. Different jobs, different homes.
When you're comparing hosts, run through these questions.
This module covers two popular hosts, one from each style.
| Host | Style | Known For |
|---|---|---|
| Railway | Always-on server | Running full apps and databases together with little setup |
| Vercel | Frontend and serverless | Hosting Next.js sites, made by the team behind Next.js |
Each one gets its own chapter. You'll set up an account, deploy an app, add environment variables, connect a custom domain and more. By the end you'll know which one fits which job.
Up next is the Railway chapter. You'll find out what Railway is, make an account, and put your very first app on the internet...