https://github.com/regenrek/nuxt-storyblok-query-example
Simple Storyblok create and read posts example
https://github.com/regenrek/nuxt-storyblok-query-example
Last synced: 30 days ago
JSON representation
Simple Storyblok create and read posts example
- Host: GitHub
- URL: https://github.com/regenrek/nuxt-storyblok-query-example
- Owner: regenrek
- Created: 2020-11-22T15:47:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T16:33:01.000Z (over 2 years ago)
- Last Synced: 2025-02-08T12:46:23.242Z (3 months ago)
- Language: Vue
- Homepage:
- Size: 2.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nuxt-storyblok-query-example
This is the simplest example of creating and reading `posts` from storyblok cms
which I could come up with.## Preview
## Quickstart
Copy `.env.example` to `.env` in your workspace and fill in your Storyblok API credentials.
Get your [Client API access Token](https://www.storyblok.com/docs/guide/getting-started#nuxtjs-example) (Read stories)
Get your [Management API OAuth Token](http://app.storyblok.com/#!/me/account) (Create stories)#### Install
```
yarn
````#### Run
````
yarn dev
````## Caveats
If you want to create posts in a folder named `posts` then you have
to add your `PARENT_STORY_ID` inside `index.vue`. Unfortunately I haven't
found a way to add a pretty name for the parent story/folder yet.* pages/index.vue
```
const PARENT_STORY_ID = ''
```