Inside of your Astro project, you'll see the following folders and files:
./
βββ astro.config.mjs
βββ package.json
βββ package-lock.json
βββ postcss.config.cjs
βββ public
β βββ assets
β β βββ logo.svg
β βββ CNAME
β βββ favicon.ico
β βββ fonts
β β βββ ttf
β β β βββ Vazirmatn-RD-Black.ttf
β β β βββ Vazirmatn-RD-Bold.ttf
β β β βββ Vazirmatn-RD-ExtraBold.ttf
β β β βββ Vazirmatn-RD-ExtraLight.ttf
β β β βββ Vazirmatn-RD-Light.ttf
β β β βββ Vazirmatn-RD-Medium.ttf
β β β βββ Vazirmatn-RD-Regular.ttf
β β β βββ Vazirmatn-RD-SemiBold.ttf
β β β βββ Vazirmatn-RD-Thin.ttf
β β βββ variable
β β β βββ Vazirmatn-RD[wght].ttf
β β βββ webfonts
β β βββ Vazirmatn-RD-Black.woff2
β β βββ Vazirmatn-RD-Bold.woff2
β β βββ Vazirmatn-RD-ExtraBold.woff2
β β βββ Vazirmatn-RD-ExtraLight.woff2
β β βββ Vazirmatn-RD-Light.woff2
β β βββ Vazirmatn-RD-Medium.woff2
β β βββ Vazirmatn-RD-Regular.woff2
β β βββ Vazirmatn-RD-SemiBold.woff2
β β βββ Vazirmatn-RD-Thin.woff2
β β βββ Vazirmatn-RD[wght].woff2
β βββ images
β β βββ cat.svg
β β βββ GitHub-Emblem.png
β β βββ satr.svg
β β βββ sleepyhead-cat-unsplash.jpg
β β βββ termux-thm.jpg
β β βββ test2.png
β β βββ test.png
β β βββ what-is-deno.png
β βββ robots.txt
β βββ style
β β βββ global.css
β β βββ home.css
β βββ Vazirmatn-RD-font-face.css
βββ sandbox.config.json
βββ src
β βββ components
β β βββ Banner.astro
β β βββ Button.astro
β β βββ Card.astro
β β βββ Footer.astro
β β βββ Navbar.astro
β βββ layouts
β β βββ blog.astro
β β βββ page.astro
β βββ pages
β β βββ 404.astro
β β βββ about-me.astro
β β βββ blog
β β βββ index.astro
β β βββ posts
β β βββ index.astro
β βββ styles
β β βββ global.css
β βββ utility
β βββ JSONid.js
βββ tsconfig.json
βββ windi.config.js
Astro looks for .astro
or .md
files in the src/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.
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 |
Feel free to check our documentation or jump into our Discord server.