/storyblok-snipcart-shop

A Storyblok Website with a snipcart shop integration

Primary LanguageLiquidMIT LicenseMIT

Storyblok enriched with Snipcart



Try it out!

1. Clone the Storyblok Space

Press the URL below to directly build this shop in your own Storyblok space library.

Press here for your own shop

Make sure you're already registered, if not register and press the link again.

2. Update the Snipcart API key & Configuration

You can update the Snipcart API-key in Storyblok by clicking on the Header and change the Value of the Key "Snipcart API Key".

Make sure you've also setup your Snipcart account following their awesome tutorial.

3. Your Shop and Blog is already online!

You can now create new Products and also Blog posts. Hurrrray!

Bonus

1. You want to change the HTML, CSS and JavaScript? Lets start

This repository uses the Rendering Service of Storyblok to provide you a quick and easy to use starting point for Snipcart in combination with Storyblok.

## Install the CLI
npm install -g storyblok

## setup configuration
storyblok select

2. The CLI will ask you questions - answer them like:

How should your Project be named - Your Project Name
Select the type of your project - Theme (Storyrenderer/Hosted)
We got some Themes prepared for you: - Custom Theme [We will ask you about your Github URL]
What is your github theme URL? - https://github.com/dominikangerer/storyblok-snipcart-shop
What is your space ID? - YOUR_SPACE_ID (Can be found on the Space dashboard)
What is your domain? - YOUR_STORYBLOK_SUBDOMAIN (Can be found in your Space settings "Location")
What is your theme token? - YOUR_THEME_TOKEN (Can be found on the Space dashboard)

## Navigate to your checkout project and instead of `gulp` run `npm run dev`.
npm run dev

The rendering service automatically pushes your new changes to Storyblok using a gulp task in the background. You can have a look at the Kickstart of Storyblok or at the gulpfile.babel.js in this repository so you know what will happen next.

Commands

In the background we're using gulp so you can change all the commands below and adopt them to your need.

# Start you local dev environment on port 4440
$ npm run dev

# Build static assets (styles, scripts)
$ npm run build

# Sync your current state on the dev environment
$ npm run deploy:dev

# Sync your current state on the live environment
$ npm run deploy:live

Is there a full documentation about those filters and other possibilities?

Sure! You can find them right here:



Storyblok Logo