docs: update README

This commit is contained in:
Stefan Imhoff
2023-05-05 07:43:21 +02:00
parent d6e3edfb34
commit 2977e57c3d

View File

@@ -1,54 +1,37 @@
# Astro Starter Kit: Basics [![Live](https://img.shields.io/badge/live-stefanimhoff.de-green.svg)](https://www.stefanimhoff.de/)
![Maintenance](https://img.shields.io/maintenance/yes/2023.svg)
``` # stefanimhoff.de
npm create astro@latest -- --template basics
This is the source of my [personal website][si] build with [Astro], [Tailwind CSS], and [Preact].
## Installation
```sh
pnpm install
``` ```
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics) ## Running the Website
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun! ```sh
pnpm dev
![basics](https://user-images.githubusercontent.com/4677417/186188965-73453154-fdec-4d6b-9c34-cb35c248ae5b.png)
## 🚀 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. For more tasks have a look into the `package.json`.
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. ## License
Any static assets, like images, can be placed in the `public/` directory. All content is copyrighted by _Stefan Imhoff_ unless otherwise stated. Feel free to learn from the Source Code and reuse code for your projects.
## 🧞 Commands The essays in my [Journal] of this website are licensed under a [Creative Commons license].
All commands are run from the root of the project, from a terminal: The use of my design—the unique combination of layout, photos, or illustrations—my private photos, personal data and logo are only allowed with written permission.
| Command | Action | In _easier_ words: **This is not a free theme**. Learn from it. Remix. Reuse. Build your own stuff. You can do it! 🤘
| :--------------------- | :----------------------------------------------- |
| `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? [creative commons license]: https://creativecommons.org/licenses/by-nc-sa/4.0/
[astro]: https://astro.build/
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). [tailwind css]: https://tailwindcss.com/
[preact]: https://preactjs.com/
[journal]: https://www.stefanimhoff.de/journal/
[si]: https://www.stefanimhoff.de/