|
1 | 1 | # GJTiquia.com
|
2 | 2 |
|
3 |
| -repo for my personal site |
| 3 | +my personal site |
| 4 | + |
| 5 | +## TODOs |
| 6 | + |
| 7 | +[ ] see if .vscode needs any configuration to make use of deno/fmt |
| 8 | + |
| 9 | +## some context |
| 10 | + |
| 11 | +built with Astro, using the Deno runtime for fun |
| 12 | +- ref: https://deno.com/blog/build-astro-with-deno |
| 13 | + |
| 14 | +## commands |
| 15 | + |
| 16 | +`deno task`: see available tasks |
| 17 | + |
| 18 | +## Astro Starter Kit: Basics |
| 19 | + |
| 20 | +```sh |
| 21 | +npm create astro@latest -- --template basics |
| 22 | +``` |
| 23 | + |
| 24 | +[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics) |
| 25 | +[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics) |
| 26 | +[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json) |
| 27 | + |
| 28 | +> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! |
| 29 | +
|
| 30 | + |
| 31 | + |
| 32 | +## 🚀 Project Structure |
| 33 | + |
| 34 | +Inside of your Astro project, you'll see the following folders and files: |
| 35 | + |
| 36 | +```text |
| 37 | +/ |
| 38 | +├── public/ |
| 39 | +│ └── favicon.svg |
| 40 | +├── src/ |
| 41 | +│ ├── components/ |
| 42 | +│ │ └── Card.astro |
| 43 | +│ ├── layouts/ |
| 44 | +│ │ └── Layout.astro |
| 45 | +│ └── pages/ |
| 46 | +│ └── index.astro |
| 47 | +└── package.json |
| 48 | +``` |
| 49 | + |
| 50 | +Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. |
| 51 | + |
| 52 | +There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. |
| 53 | + |
| 54 | +Any static assets, like images, can be placed in the `public/` directory. |
| 55 | + |
| 56 | +## 🧞 Commands |
| 57 | + |
| 58 | +All commands are run from the root of the project, from a terminal: |
| 59 | + |
| 60 | +| Command | Action | |
| 61 | +| :------------------------ | :----------------------------------------------- | |
| 62 | +| `npm install` | Installs dependencies | |
| 63 | +| `npm run dev` | Starts local dev server at `localhost:4321` | |
| 64 | +| `npm run build` | Build your production site to `./dist/` | |
| 65 | +| `npm run preview` | Preview your build locally, before deploying | |
| 66 | +| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | |
| 67 | +| `npm run astro -- --help` | Get help using the Astro CLI | |
| 68 | + |
| 69 | +## 👀 Want to learn more? |
| 70 | + |
| 71 | +Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). |
0 commit comments