https://github.com/jacobpretorius/opti.saas.astro.demo
Optimizely SaaS CMS example site using Astro.build
https://github.com/jacobpretorius/opti.saas.astro.demo
astro astrojs optimizely optimizely-cms
Last synced: about 1 month ago
JSON representation
Optimizely SaaS CMS example site using Astro.build
- Host: GitHub
- URL: https://github.com/jacobpretorius/opti.saas.astro.demo
- Owner: jacobpretorius
- Created: 2024-04-23T15:59:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-06T13:32:13.000Z (4 months ago)
- Last Synced: 2025-03-26T14:14:36.236Z (about 1 month ago)
- Topics: astro, astrojs, optimizely, optimizely-cms
- Language: Astro
- Homepage: https://opti-saas-astro-static-demo.vercel.app
- Size: 30 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Optimizely SaaS CMS example site using [Astro](https://astro.build/)
This example site shows how Optimizely SaaS CMS can be used with Astro. To configure your own all you would need is to import the data into your CMS instance and plug in the relevant values in `.env` and the other configuration files.
## Static Site Version
[https://opti-saas-astro-static-demo.vercel.app](https://opti-saas-astro-static-demo.vercel.app)
See the `/src/static-site/cms-data/` folder for an export you can import to your headless CMS with sample content and models.
Stared with the Astro blog template.
---
```sh
npm create astro@latest -- --template blog
```See `.env` for environment variable used to connect to the SaaS CMS Optimizely Graph instance.
## Dev 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 |