Blank Slate
This is a blank slate project for starting a blog with Astro.js.
π Project Structure
Inside of your Astro project, you'll see the following folders and files:
/
βββ public
βββ src
βββ components
β βββ layouts
β βββ utilities
βββ content
βββ pages
βββ style
- pages - This directory is significant for Astro. Files here become URLs.
- components - Template parts, layouts, utilities, all go here.
- content - Keep the content separate from the system for clearer separation.
- style - Global SCSS styles.
- published - A directory where to place any static files that need to be used on the site.
π§ Commands
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:3000 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
π Want to learn more?
Feel free to check out Astro documentation or jump into Astro's Discord server.