An open API service indexing awesome lists of open source software.

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

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
![demo](example/sbimage.gif)

## 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 = ''
```