This is my first post. I’m learning how to build a blog from scratch, one command at a time.

Steps to Build Your Own Website

So first, you should have Node.js installed on your device. Then, using your terminal, write

node -v
node -v
node -v

to check that you have Node.js installed. If it shows a version number, congrats — you have Node.js installed! Don’t close the terminal, because the next step is to install Astro. In your terminal, write:

npm create astro@latest

Once everything is installed, run this command in your terminal to start the local dev server and preview your website in the browser:

npm run dev

If you run into an error here, you might need to run this command first:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process

Once you see the localhost link in your terminal, congrats — you have your own website running! What I need to do next is keep building it out and designing it further.