Go to file
2024-05-07 12:03:51 +03:00
.devcontainer feat: switch to hugo 2023-12-04 03:43:34 +00:00
.github/workflows Create hugo.yaml 2023-12-11 09:32:23 +03:00
.vscode chore: remove lit 2024-05-04 09:18:31 +03:00
archetypes feat: switch to hugo 2023-12-04 03:43:34 +00:00
assets feat: add new section for personal writings 2024-01-02 05:57:25 +00:00
content feat: add new section for personal writings 2024-01-02 05:57:25 +00:00
i18n feat: add new section for personal writings 2024-01-02 05:57:25 +00:00
layouts feat: add new section for personal writings 2024-01-02 05:57:25 +00:00
public Merge remote-tracking branch 'astro-blog/master' 2024-05-07 12:03:51 +03:00
resources/_gen/assets/scss/scss feat: add featued images 2023-12-11 05:05:40 +00:00
src style: minor changes 2024-05-07 11:55:18 +03:00
static Rename static/furkan_erdem_CV-1.pdf to static/en/furkan_erdem_cv.pdf 2024-04-02 13:04:03 +03:00
themes feat: switch to hugo 2023-12-04 03:43:34 +00:00
.gitignore feat: add sample content and styling 2024-05-06 22:36:07 +03:00
.gitmodules feat: switch to hugo 2023-12-04 03:43:34 +00:00
.hugo_build.lock feat: update to hugo 0.121 2023-12-07 02:12:32 +00:00
.prettierignore chore: remove lit 2024-05-04 09:18:31 +03:00
.prettierrc chore: remove lit 2024-05-04 09:18:31 +03:00
astro.config.mjs chore: remove lit 2024-05-04 09:18:31 +03:00
config.toml feat: add new section for personal writings 2024-01-02 05:57:25 +00:00
package-lock.json chore: remove lit 2024-05-04 09:18:31 +03:00
package.json chore: remove lit 2024-05-04 09:18:31 +03:00
README.md init project 2024-05-01 07:57:25 +03:00
tsconfig.json feat: add content collection and sample posts 2024-05-04 10:53:47 +03: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!

just-the-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:4321
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.