https://github.com/zellwk/build-and-deploy-workshop
https://github.com/zellwk/build-and-deploy-workshop
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zellwk/build-and-deploy-workshop
- Owner: zellwk
- Created: 2022-05-27T02:49:33.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-15T04:26:28.000Z (about 4 years ago)
- Last Synced: 2025-09-22T16:48:49.923Z (10 months ago)
- Language: Astro
- Size: 3 MB
- Stars: 10
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to [Astro](https://astro.build)
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/starter)
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```
/
├── public/
│ └── favicon.ico
├── src/
│ ├── components/
│ │ └── 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 or layouts.
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:3000` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
## 👀 Want to learn more?
Feel free to check [our documentation](https://github.com/withastro/astro) or jump into our [Discord server](https://astro.build/chat).