In this video, CodeYam cofounder and CTO Jared Cosulich answers the questions people ask most about getting a website online. Each question is its own chapter, so you can jump straight to the ones you care about.
The short version
Hosting is where your website lives so other people can reach it. A domain is the address people type to get there, like example.com. You can have one without the other, but most sites people take seriously have both.
Why your site isn't online yet
If you can see your site by double-clicking a file, or at an address with localhost in it, it is only running on your computer. Nobody else can open it, even if you send them the link. To share it, you need to host it.
Getting your first site online
- Start with free hosting. A static website (the same content for every visitor) can usually be hosted free on GitHub Pages. If your site has logins or a database, try Vercel or Render, which both have free tiers.
- Try it on the free address first. Your host gives you a working web address. It is long and not very pretty, but it is fine for testing or showing a few friends.
- Buy a domain when you are ready to share it widely. Aim for something short, catchy and easy to remember. Don't worry if the .com is taken; .co, .io, .ai and .org are all common now. If you pick an unusual extension, look it up first, because some networks block a few of them.
- Buy from a well-known registrar, the kind of company that sells domains, such as Namecheap. Check the renewal price as well as the first-year price, since some start cheap and renew much higher.
- Turn on automatic renewal. You rent a domain rather than own it, and if it lapses, someone else can buy it.
Want to see a real site go live on its own domain? Watch Going live on a custom domain.
What it costs
- Hosting a simple static site: often free.
- Hosting an app with a database: often free to start, then roughly $20 to $40 a month as it grows.
- A new domain: usually $10 to $20 a year for a .com, and up to about $100 for some names. Buying a domain someone else already owns can cost thousands.
Hosts and database services warn you as you get close to a free tier's limit. The two things that usually push you onto a paid plan are a lot more visitors and a lot more stored data, like photos or videos people upload.
Words to know
- Hosting: a service that keeps your site online for anyone to visit.
- Domain: your site's address, like example.com.
- Extension: the ending of a domain, like .com or .org.
- Registrar: a company that sells domains.
- localhost: an address that only works on your own computer.
- Free tier: the free level of a paid service, with limits.
Services mentioned in this lesson
Prefer to listen? This video is also an episode of the CodeYam podcast: Hosting & Domains.