storyblok / storyblok-express-boilerplate

Node.js Express boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js / Express boilerplate

A Node.js / Express boilerplate which uses Storyblok as datasource for rendering components.


GitHub release

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/.

What is a boilerplate?

A boilerplate gives you a starting point for using Storyblok as API-based CMS for your next project.

How to get started?

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:

  1. npm install
  2. gulp
  3. Make sure you have created a space on app.storyblok.com with the location pointing to http://localhost:4300.
  4. 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

Configuration

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'
});

You want to know more about storyblok?



Storyblok Logo

About

Node.js Express boilerplate


Languages

Language:CSS 85.6%Language:HTML 7.8%Language:JavaScript 6.6%