Piano notes book, powered by Astro and React.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

README.md 2.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Astro Starter Kit: Basics
  2. ```sh
  3. npm create astro@latest -- --template basics
  4. ```
  5. [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
  6. [![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
  7. [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
  8. > 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
  9. ![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554)
  10. ## 🚀 Project Structure
  11. Inside of your Astro project, you'll see the following folders and files:
  12. ```text
  13. /
  14. ├── public/
  15. │ └── favicon.svg
  16. ├── src/
  17. │ ├── components/
  18. │ │ └── Card.astro
  19. │ ├── layouts/
  20. │ │ └── Layout.astro
  21. │ └── pages/
  22. │ └── index.astro
  23. └── package.json
  24. ```
  25. Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
  26. There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
  27. Any static assets, like images, can be placed in the `public/` directory.
  28. ## 🧞 Commands
  29. All commands are run from the root of the project, from a terminal:
  30. | Command | Action |
  31. | :------------------------ | :----------------------------------------------- |
  32. | `npm install` | Installs dependencies |
  33. | `npm run dev` | Starts local dev server at `localhost:4321` |
  34. | `npm run build` | Build your production site to `./dist/` |
  35. | `npm run preview` | Preview your build locally, before deploying |
  36. | `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
  37. | `npm run astro -- --help` | Get help using the Astro CLI |
  38. ## 👀 Want to learn more?
  39. Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).