diff options
| author | Tomas Bankauskas <tbdizainas@gmail.com> | 2024-04-24 12:52:08 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-24 12:52:08 +0300 |
| commit | a02c5edffe916948911120089a0250bea81b2d4a (patch) | |
| tree | 941516fd984bb1a0affc988e8bea452d7f4d6419 | |
| parent | 6eb143cda881ba4dd26ab84bd85673f0fe94c1b8 (diff) | |
Readme (#12)
* updated README.md
| -rw-r--r-- | README.md | 39 |
1 files changed, 38 insertions, 1 deletions
@@ -1,6 +1,10 @@ # Astro on Netlify Platform Starter -## Commands +[Live Demo](https://astro-platform-starter.netlify.app/) + +A modern starter based on Astro.js, Tailwind, daisyUI, 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: @@ -12,3 +16,36 @@ All commands are run from the root of the project, from a terminal: | `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). |
