init
npm create astro@latest -- --template minimal
🧑🚀 Seasoned astronaut? Delete this file. Have fun!
Inside of your Astro project, you’ll see the following folders and files:
/ ├── public/ ├── src/ │ └── pages/ │ └── index.astro └── package.json
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
.astro
.md
src/pages/
There’s nothing special about src/components/, but that’s where we like to put any Astro/React/Vue/Svelte/Preact components.
src/components/
Any static assets, like images, can be placed in the public/ directory.
public/
All commands are run from the root of the project, from a terminal:
npm install
npm run dev
localhost:3000
npm run build
./dist/
npm run preview
npm run astro ...
astro add
astro check
npm run astro -- --help
Feel free to check our documentation or jump into our Discord server.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Astro Starter Kit: Minimal
🚀 Project Structure
Inside of your Astro project, you’ll see the following folders and files:
Astro looks for
.astro
or.md
files in thesrc/pages/
directory. Each page is exposed as a route based on its file name.There’s nothing special about
src/components/
, but that’s where we like to put any Astro/React/Vue/Svelte/Preact components.Any static assets, like images, can be placed in the
public/
directory.🧞 Commands
All commands are run from the root of the project, from a terminal:
npm install
npm run dev
localhost:3000
npm run build
./dist/
npm run preview
npm run astro ...
astro add
,astro check
npm run astro -- --help
👀 Want to learn more?
Feel free to check our documentation or jump into our Discord server.