astro/examples/README.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
640 B
Markdown
Raw Normal View History

2021-07-16 11:57:09 +00:00
# Astro Examples Library
The easiest way to check out one of these examples on your machine is by running this command in an empty directory:
```sh
npm create astro@latest -- --template [EXAMPLE_NAME]
2021-07-16 11:57:09 +00:00
```
## Community Examples
Visit [awesome-astro](https://github.com/one-aalam/awesome-astro) for a full list of community examples. You can use `npm create astro@latest` to check out any community examples:
2021-07-16 11:57:09 +00:00
```sh
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]
2021-07-16 11:57:09 +00:00
```
Paths to examples nested inside of a repo are also supported:
```sh
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example
2021-07-16 11:57:09 +00:00
```