buzzbell / rapashwednesday

rapashwednesday.com | Chicago based alternative hip hop.
https://rapashwednesday-buzzbell-redesign.netlify.com/home
0 stars 0 forks source link

vuejs-boilerplate for Storyblok

A Storyblok boilerplate with vuejs to simply start your website with us.

Imagine you have a single page application and want some pages editable with a CMS. This is now possible with Storyblok.


GitHub release

What is a storyblok boilerplate

If you want to use your server or have already an existing project in which you want to integrate Storyblok you can use one of our boilerplates.

How can I start with a boilerplate

The most efficient way to start a storyblok project as a developer would be our Command Line Interface.

npm i storyblok -g
storyblok

and choose your boilerplate. You can of course simply download or clone this repository as well.

git clone https://github.com/storyblok/vuejs-boilerplate

Configuration

In the src/components/Index.vue you can add your token which can be found in your space information. What is a Space?:

window.storyblok.init({
  accessToken: 'Iw3XKcJb6MwkdZEwoQ9BCQtt'
})

Start your local environment

Make sure npm is installed:

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

Folder structure

You want to know more about storyblok?



Storyblok Logo