Build

How to build a real website for $0 with Astro and free hosting

By Shoestring Launch · Prices and facts checked December 4, 2026

This site runs on the setup below, and the total bill is $0. Here is how it works and where it stops being enough.

What you need

Sources: Cloudflare Pages limits, GitHub Pages limits.

The steps

  1. Install Node.js, then run npm create astro@latest. Pick the minimal template.
  2. Add pages as Markdown files. Each file is one article.
  3. Run npm run build. It creates a dist folder of static files.
  4. Push the project to GitHub and connect it to the host. Every push rebuilds the site.

What it costs

Nothing for the site itself. You get a free address from the host. A custom domain such as yourname.com is the one thing worth paying for later. It is optional at the start.

What it cannot do

A static site has no database and no login. It cannot take payments by itself, and it cannot run a shop. For those, use a service that does it for you. Our guide to Systeme.io’s free plan covers one such option.

Choose this route if you are happy to edit text files. If you are not, a hosted website builder is easier and the next guides compare the costs.