https://github.com/hellotham/astro-base
Base template for Astro projects
https://github.com/hellotham/astro-base
astrojs iconify template typescript unocss website website-template
Last synced: about 1 month ago
JSON representation
Base template for Astro projects
- Host: GitHub
- URL: https://github.com/hellotham/astro-base
- Owner: hellotham
- License: mit
- Created: 2023-05-23T01:06:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-10-03T08:10:39.000Z (6 months ago)
- Last Synced: 2025-10-03T10:17:29.911Z (6 months ago)
- Topics: astrojs, iconify, template, typescript, unocss, website, website-template
- Language: JavaScript
- Homepage: https://astro-base.netlify.app
- Size: 1.4 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Astro Base
[](https://app.netlify.com/sites/astro-base/deploys)

Minimal [Astro](https://astro.build) starter for new projects. MIT licence.
Uses:
- [Typescript](https://www.typescriptlang.org/)
- [Prettier](https://prettier.io/)
- [ESLint](https://eslint.org/)
- [UnoCSS](https://unocss.dev/)
- `@astrojs/sitemap` and `@astrojs/rss` preintegrated
- Heroicons and SVG Logos preloaded via [Iconify](https://iconify.design/)
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```text
/
├── astro.config.mjs # Astro configuration file
├── public/ # Location of static assets
│ └── favicon.svg
├── src/
│ ├── assets/ # Location of dynamic assets (eg. images)
│ │ └── screenshot.png
│ ├── components/ # Astro components
│ │ └── header.astro
│ ├── content/ # Location of content (markdown, data and images)
│ │ └── config.ts
│ ├── layouts/ # Location of layouts for pages
│ │ └── Layout.astro
│ └── pages/ # Location of pages
│ └── index.astro
├── package.json
└── tsconfig.json # Typescript configuration file
└── uno.config.ts # UnoCSS configuration file
```
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `pnpm clean` | Removes dependencies and output files |
| `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 lint` | Runs Prettier and ESLint on files in `src/` |
| `pnpm refresh` | Updates Astro and other dependencies |
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
| `pnpm astro -- --help` | Get help using the Astro CLI |