https://github.com/hygraph/skncre-starter-nuxt
SKNCRE a Hygraph cosmetics brand demo showcasing Hygraph CMS and Federated content
https://github.com/hygraph/skncre-starter-nuxt
Last synced: 3 months ago
JSON representation
SKNCRE a Hygraph cosmetics brand demo showcasing Hygraph CMS and Federated content
- Host: GitHub
- URL: https://github.com/hygraph/skncre-starter-nuxt
- Owner: hygraph
- Created: 2024-03-08T10:25:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T15:54:36.000Z (almost 2 years ago)
- Last Synced: 2025-02-25T17:55:59.937Z (over 1 year ago)
- Language: Vue
- Size: 579 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SKNCRE a Hygraph cosmetics brand demo
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
## Setup
## Add GraphQL and Hygraph connections
In `.env` add and make sure to add content viewing permissions in Hygraph API settings
```
GQL_HOST=https://.cdn.hygraph.com/content//master
```
See `.env.example` for the setup requirements.
Add `.gql` query files in the `./queries` folder and use them like this:
```js
const { data } = await useAsyncGql("", { foo: "bar" });
```
## Development Server
Start the development server on `http://localhost:3000`:
```bash
yarn dev
```
## Production
Build the application for production:
```bash
yarn build
```
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.