Astro + TypeScript boilerplate for dashboard-style projects, configured for GitHub Pages and ready for future API integration.
- Astro (static output)
- TypeScript (simple setup)
- Bootstrap via SCSS source import
- npm package manager
src/
components/
layouts/
lib/
api/
pages/
styles/
npm install
npm run devnpm run build
npm run previewBootstrap is loaded from SCSS source so you can layer custom styles cleanly:
src/styles/_variables.scssfor Bootstrap variable overridessrc/styles/bootstrap.scssfor Bootstrap importsrc/styles/custom.scssfor project-specific stylessrc/styles/global.scssfor style load order (Bootstrap first, custom second)
Use src/lib/api/ for endpoint constants and shared fetch helpers:
endpoints.tsfor API route constantshttp.tsfor typed request helpers
A GitHub Actions workflow is included at:
.github/workflows/deploy.yml
Astro is configured in astro.config.mjs with a practical project-site default:
site: "https://mcspach.github.io"base: "/Astro-Dash/"
If this repo is deployed as a user/org site instead of a project site, update site and base accordingly.