Source code of my web site and blog https://dc09.ru
Find a file
2023-06-21 22:28:07 +04:00
public Moved images to /assets 2023-06-19 20:59:09 +04:00
src Bugix: image path 2023-06-19 21:55:05 +04:00
.gitignore Gitingore: dist zip 2023-06-21 22:28:07 +04:00
astro.config.mjs Fixed rehype-figure 2023-06-19 21:32:05 +04:00
dc09.js Notice in dc09.js 2023-06-18 18:03:34 +04:00
package-lock.json Updated package-lock 2023-06-19 20:55:07 +04:00
package.json Custom plugin for description and "minutes reading" 2023-06-18 20:00:53 +04:00
README.md Rewritten in Astro (i had better separate this commit into smaller ones) 2023-05-05 14:01:09 +04:00
remark-post-meta.mjs Custom plugin for description and "minutes reading" 2023-06-18 20:00:53 +04:00
tsconfig.json Rewritten in Astro (i had better separate this commit into smaller ones) 2023-05-05 14:01:09 +04:00

Astro Starter Kit: Basics

npm create astro@latest -- --template basics

Open in StackBlitz Open with CodeSandbox Open in GitHub Codespaces

🧑‍🚀 Seasoned astronaut? Delete this file. Have fun!

basics

🚀 Project Structure

Inside of your Astro project, you'll see the following folders and files:

/
├── public/
│   └── favicon.svg
├── src/
│   ├── components/
│   │   └── Card.astro
│   ├── layouts/
│   │   └── Layout.astro
│   └── 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.

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:

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
npm run astro ... Run CLI commands like astro add, astro check
npm run astro --help Get help using the Astro CLI

👀 Want to learn more?

Feel free to check our documentation or jump into our Discord server.