hygraph / skncre-starter-nuxt

SKNCRE a Hygraph cosmetics brand demo showcasing Hygraph CMS and Federated content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SKNCRE a Hygraph cosmetics brand demo

Look at the Nuxt 3 documentation 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://<HYGRAPH_CDN_LOCATION>.cdn.hygraph.com/content/<ID>/master

See .env.example for the setup requirements.

Add .gql query files in the ./queries folder and use them like this:

const { data } = await useAsyncGql("<QUERY_NAME>", { foo: "bar" });

Development Server

Start the development server on http://localhost:3000:

yarn dev

Production

Build the application for production:

yarn build

Check out the deployment documentation for more

About

SKNCRE a Hygraph cosmetics brand demo showcasing Hygraph CMS and Federated content


Languages

Language:Vue 75.6%Language:TypeScript 21.4%Language:CSS 1.6%Language:JavaScript 1.4%