A personal website gives you a place on the internet that you can organize and update yourself. It can introduce your work, collect your writing, showcase a portfolio, or simply document what you are learning.

You do not need a large team to build one. In this guide, we will make a simple website with Astro, store its source code on GitHub, and publish its static files with Cloudflare Workers.

Before you start: This is a general, step-by-step tutorial, not a claim that every possible hosting setup has been personally tested. The tools and dashboard screens can change. Check the official documentation linked below if something looks different.

1. Decide what your website is for

Before choosing a design or writing code, decide what a visitor should be able to do on your site.

For a simple personal website, you might start with four pages:

  • Home: A short introduction and links to your best work.
  • About: Who you are, what you do, and what interests you.
  • Blog: Articles, progress updates, or lessons learned.
  • Contact: A safe, practical way for someone to reach you.

Start small. You can add a portfolio, newsletter, or other features once the basic website is working.

2. Choose your building method

There is no single best way to create a personal website.

Method Good for Trade-off
Website builder Fast setup without coding Less control; features may require a paid plan
WordPress Publishing through an editor More setup and maintenance choices
Static site with Astro Fast, flexible sites you maintain in a code repository You will work with files and some code

This tutorial follows the third approach. Astro is a good fit for content-led sites because it can generate ready-to-serve HTML during the build process.

3. Prepare your tools

Install or create the following:

  1. Node.js with npm — to run Astro’s setup and build commands.
  2. Visual Studio Code (or another code editor) — to edit your site.
  3. Git — to track changes locally.
  4. A GitHub account — to host the source repository.
  5. A Cloudflare account — to deploy the finished static site.

Use the official download pages for these tools. If you already have Node.js, open a terminal and check:

node --version
npm --version

If either command is missing, install a supported Node.js release before moving on.

4. Create your Astro project

In a terminal, open the folder where you keep your projects, then run:

npm create astro@latest my-personal-website

The setup assistant will ask a few questions. For a site you plan to design yourself, the minimal starter is a reasonable choice. Install dependencies when prompted. You can initialize Git during setup or do it yourself afterward.

When setup finishes:

cd my-personal-website
npm run dev

Open the local address Astro prints in the terminal (commonly http://localhost:4321). You should see your starter website.

5. Make your first pages

Astro creates website routes from files in src/pages/. For example:

src/
  pages/
    index.astro        # Home: /
    about.astro        # About: /about
    blog/
      index.astro      # Blog: /blog
    contact.astro      # Contact: /contact

A basic page might look like this:

---
const pageTitle = 'About Me';
---
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>{pageTitle}</title>
  </head>
  <body>
    <main>
      <h1>{pageTitle}</h1>
      <p>Welcome to my personal website.</p>
      <a href="/">Back to home</a>
    </main>
  </body>
</html>

As your site grows, move the shared header, footer, and page metadata into a reusable Astro layout instead of repeating the same markup on every page.

6. Keep the design simple

A personal website does not need dozens of animations or complicated navigation.

Focus on the basics:

  • Make your text readable on both small and large screens.
  • Use one clear heading for each page and descriptive links.
  • Give visitors a consistent way to navigate.
  • Use good color contrast and visible keyboard focus states.
  • Optimize images so pages do not load unnecessary files.

If you write articles, Markdown is a practical format: your text lives in the repository alongside the website code. Astro Content Collections can turn those Markdown files into article pages with consistent metadata.

7. Save your work with Git and GitHub

If the Astro setup did not initialize Git, run this from your project directory:

git init -b main

Before staging files, check that .gitignore excludes at least node_modules/, dist/, and private environment files such as .env.

Then create your first commit:

git add .
git commit -m "Create personal website"

Create an empty repository on GitHub. Copy its actual repository URL and connect it as origin:

git remote add origin https://github.com/YOUR-USERNAME/my-personal-website.git
git push -u origin main

Replace YOUR-USERNAME with your GitHub username. If the remote repository already contains its own commits, integrate those changes rather than using a force push.

GitHub stores your project history. It is not automatically your public website host in this setup; Cloudflare will serve the built pages.

8. Build the static website

Stop the local development server if needed, then run:

npm run build

Astro places the generated website in dist/ by default. Open your terminal output and confirm that the build completed successfully before deploying.

9. Publish it using Cloudflare Workers

For a fully static Astro website, Cloudflare Workers can serve your dist/ folder as static assets. You do not need the Astro Cloudflare server-rendering adapter for this approach.

Create a wrangler.jsonc file in the project root:

{
  "name": "my-personal-website",
  "compatibility_date": "2026-10-15",
  "assets": {
    "directory": "./dist"
  }
}

Choose a Worker name that is available in your Cloudflare account. From the project folder, after a successful build, deploy with:

npx wrangler@latest deploy

Follow the login prompts if Cloudflare asks you to authenticate. Cloudflare will provide a deployment address when publishing succeeds.

If you prefer automatic updates when pushing to GitHub, you can connect the repository in Cloudflare Workers Builds. Configure its production branch as main, its build command as npm run build, and its deploy command as npx wrangler deploy. Keep your wrangler.jsonc in the repository so the build knows where the static files are.

Cloudflare’s static-asset requests are currently free, but account limits and pricing can change. A custom domain, if you buy one, is a separate expense.

10. Check the published website

Visit your actual deployment URL on a phone and a computer. Check that:

  • Every page opens when visited directly, not only by clicking from Home.
  • Navigation links work.
  • Text remains readable on narrow screens.
  • Images have descriptive alternative text when they convey information.
  • Page titles and descriptions are specific and accurate.
  • Your contact option works and does not expose information you would rather keep private.

When you are ready, you can connect your own domain name and configure a sitemap, canonical URLs, and the public-facing legal pages required by your site’s actual features and data practices.

11. Keep improving one page at a time

Your first website does not need to be perfect. Publish accurate information, fix confusing pages, and add useful writing as you gain experience.

The most valuable thing about building it yourself is understanding how the pieces fit together: your files, your repository, your deployment, and the website people can visit.

Official documentation and further reading