A Node.js / Express boilerplate which uses Storyblok as datasource for rendering components.
This boilerplate comes with a ready to use landing page using bootstrap as CSS framework. You can access the project on https://mysterious-tor-92558.herokuapp.com/.
A boilerplate gives you a starting point for using Storyblok as API-based CMS for your next project.
The most efficient way to start a Storyblok project would be with the 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/storyblok-express-boilerplate
After you cloned the repository execute following commands:
npm install
gulp
- Make sure you have created a space on app.storyblok.com with the location pointing to
http://localhost:4300
. - To copy over the components this projects uses you can use following CLI command:
storyblok push-components https://raw.githubusercontent.com/storyblok/storyblok-express-boilerplate/master/setup/components.js
Get your private token from your space on https://app.storyblok.com and exchange it in the file index.js
.
let Storyblok = new StoryblokClient({
accessToken: 'YOUR_TOKEN'
});