Setting up a website with Astro is easy.
We assume that node and npm is already installed. If not, visit this page and install the two tools.
The first thing to do is to create a new project with npm:
npm create astro@latest -- --template satnaing/astro-paper
Here we already define that that we want to use the astro-paper
theme from Sat Naing.
During the setup we are asked a few questions like where to store the project and if you want to use TypeScript, etc.
Once you have finished the questions, you can change into the newly created directory and run:
npm run dev
Point your browser to the URL http://localhost:4321
to visit your website.
To build your site locally, just run the following command:
npm run build
Afterwards you can find the ready-to-use files in the folder dist/
.