A modern web application built with Astro for The Water Foundation.
twf-site/
āāā site/ # Main Astro application
ā āāā src/
ā ā āāā pages/ # Route pages
ā āāā public/ # Static assets
ā āāā package.json # Dependencies and scripts
ā āāā README.md # Astro-specific documentation
āāā README.md # This file
cd site
pnpm install
Start the development server:
cd site
pnpm dev
The site will be available at http://localhost:4321
All commands should be run from the site/
directory:
Command | Action |
---|---|
pnpm install |
Install dependencies |
pnpm dev |
Start local development server |
pnpm build |
Build production site to ./dist/ |
pnpm preview |
Preview production build locally |
pnpm astro ... |
Run Astro CLI commands |
pnpm astro -- --help |
Get help with Astro CLI |
site/src/pages/
- File-based routing. Each .astro
or .md
file becomes a routesite/src/components/
- Reusable UI components (Astro, React, Vue, Svelte, etc.)site/public/
- Static assets (images, fonts, etc.) served directlysite/astro.config.mjs
- Main Astro configuration filesite/tsconfig.json
- TypeScript configurationsite/package.json
- Project dependencies and scriptsThe site can be deployed to various platforms that support static sites or SSR:
Build for production:
cd site
pnpm build
site/
directorypnpm dev
pnpm build
[Add your license information here]
Built with ā¤ļø using Astro