Stack (Node 22.13.1 + pnpm 11.9.0):
- Astro 7.0.9 (output: static, prerender=false por pagina para SSR del i18n)
- Tailwind CSS 4.3.2 via @tailwindcss/vite
- maplibre-gl 5.24.0
- pmtiles 4.4.1
- @types/node, typescript 5.9.3 (no 7.x, incompatible con @astrojs/check)
- @astrojs/check 0.9.9
Estructura:
- web/src/{components,layouts,pages,i18n,data,styles}/
- web/public/tiles/dataset.pmtiles (copia de data/output/)
- web/public/data/dataset_web.json (copia de data/output/)
- web/public/data/airbnb_listings.geojson (generado en 05_)
TypeScript strict. astro check: 0 errors, 0 warnings, 0 hints.
assets servidos:
- /tiles/dataset.pmtiles -> 200
- /data/dataset_web.json -> 200
- /data/airbnb_listings.geojson -> 200
1.6 KiB
1.6 KiB
Astro Starter Kit: Basics
pnpm create astro@latest -- --template basics
🧑🚀 Seasoned astronaut? Delete this file. Have fun!
🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
│ └── favicon.svg
├── src
│ ├── assets
│ │ └── astro.svg
│ ├── components
│ │ └── Welcome.astro
│ ├── layouts
│ │ └── Layout.astro
│ └── pages
│ └── index.astro
└── package.json
To learn more about the folder structure of an Astro project, refer to our guide on project structure.
🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
pnpm install |
Installs dependencies |
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm astro ... |
Run CLI commands like astro add, astro check |
pnpm astro -- --help |
Get help using the Astro CLI |
👀 Want to learn more?
Feel free to check our documentation or jump into our Discord server.