GitXplorerGitXplorer
k

change

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
04ed98ad072465a2a8b495fb43672cfcde1c1db0

learning astro.

kkaffa committed 9 months ago
Unverified
9284c3087466a3e504450354f55875cc0c7e9531

go on

kkaffa committed 9 months ago
Unverified
2af1449398f60e9e2517705db4c74ef6ca5b0e47

add a post

kkaffa committed 9 months ago
Unverified
d99fe54bf73e38bbf214396513b9711473d01907

+ about

kkaffa committed 9 months ago
Unverified
7b9e95ca0ad317b8d810a1fd12454ab1de683049

test cf black magic

kkaffa committed 9 months ago
Unverified
235890afcdbf8413e9db68293330db3a7eb25a51

Merge branch 'main' of https://github.com/kaffa/change

kkaffa committed 9 months ago

README

The README file for this repository.

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.