https://github.com/netlify-templates/astro-platform-starter
A modern starter based on Astro.js, Tailwind CSS, and Netlify Core Primitives (Edge Functions, Image CDN, Blob Store).
https://github.com/netlify-templates/astro-platform-starter
astro-template astro-theme astrojs tailwindcss tailwindcss-v4 template
Last synced: about 1 year ago
JSON representation
A modern starter based on Astro.js, Tailwind CSS, and Netlify Core Primitives (Edge Functions, Image CDN, Blob Store).
- Host: GitHub
- URL: https://github.com/netlify-templates/astro-platform-starter
- Owner: netlify-templates
- Created: 2024-04-02T12:12:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-06T16:41:36.000Z (about 1 year ago)
- Last Synced: 2025-05-06T17:46:05.425Z (about 1 year ago)
- Topics: astro-template, astro-theme, astrojs, tailwindcss, tailwindcss-v4, template
- Language: Astro
- Homepage: https://astro-platform-starter.netlify.app/
- Size: 5.6 MB
- Stars: 70
- Watchers: 11
- Forks: 122
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Astro on Netlify Platform Starter
[Live Demo](https://astro-platform-starter.netlify.app/)
A modern starter based on Astro.js, Tailwind, and [Netlify Core Primitives](https://docs.netlify.com/core/overview/#develop) (Edge Functions, Image CDN, Blob Store).
## Astro 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:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |
## Deploying to Netlify
[](https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/astro-platform-starter)
## Developing Locally
| Prerequisites |
| :--------------------------------------------------------------------------- |
| [Node.js](https://nodejs.org/) v18.14+. |
| (optional) [nvm](https://github.com/nvm-sh/nvm) for Node version management. |
1. Clone this repository, then run `npm install` in its root directory.
2. For the starter to have full functionality locally (e.g. edge functions, blob store), please ensure you have an up-to-date version of Netlify CLI. Run:
```
npm install netlify-cli@latest -g
```
3. Link your local repository to the deployed Netlify site. This will ensure you're using the same runtime version for both local development and your deployed site.
```
netlify link
```
4. Then, run the Astro.js development server via Netlify CLI:
```
netlify dev
```
If your browser doesn't navigate to the site automatically, visit [localhost:8888](http://localhost:8888).