Getting Started
This guide below shows you how to create a space, explain the preconfigured component schema, and connect the Visual Editor with a starter project created with the @storyblok/create-demo
CLI.
Creating a Space
The first step on your Storyblok journey is either signing up for Storyblok, or, if you already have an account, logging in. Once you are logged in, you can create a new space.
Storyblok also supports various Single Sign-on (SSO) providers.
Once you click on adding a new space, you get a couple of options to choose from. You can mainly choose from creating a blank space {1}, a demo {2}, or contact for an enterprise once {3}.
For this purpose, we can choose to create a blank space from the pre-selected tab that says Select Plan {1}.
Once you continue with any of the plans, you will be taken to the next step where you need to add the space details {1}.
There are two fields, one for the space name {2} and the other to select the server location {3}. After this, you can click on Create a Space {4} button to continue.
Depending upon the plan you choose, you might need to complete further steps of adding some more information required.
If you choose a paid plan, you will get 14 days of free trial for the plan you choose. After 14 days, you will be automatically subscribed to the plan.
After you have created a new space it opens automatically and you can see the tips on how to continue from here. The terminal command provided in step 2 will be used at a later point to create a starting point for your frontend {1}.
From here, you can move over to the Content section {1}, where you can manage all of the content that exists in the newly created space. It is possible to search, filter, and sort stories and create new stories or folders.
Exploring the preconfigured Component Schema
Let’s take a look at the story we have already prepared for you: Home. Once you click on the story, the Visual Editor opens. On the left, you see a visual representation of your frontend. On the right, you can find the corresponding schema and page structure. We will focus on the structural part on the right for now and explore how to configure the live preview later in this guide.
The story Home is an instance of the story type Page {1}. A story type defines which components can be used within the story. As you can see, the preconfigured story contains two bloks of the types Teaser and Grid. The Teaser consists only of a text field to hold the headline.
Clicking on the Grid blok {1} reveals three nestable bloks of the blok type Feature {2}.
The Feature blok consists of only a text field for the name {1}.
To learn more about stories, story types, bloks and fields, visit our guide on Structures of Content.
Requesting Data from Storyblok's APIs
Storyblok is built as a headless CMS around a Content Delivery API. The API can be reached at the URL https://api.storyblok.com/
.
To see what the API will return for the Home story, click the Draft JSON button {1} in the Visual Editor. A new window will open and you will see the returned JSON data structure.
You can use a browser plugin to format the JSON output. For example, the JSON Formatter works great with all Chrome-based browsers.
The returned JSON represents the story. Its draft
version is viewable only using a preview access token. This mechanism is used to allow you to preview your content before publishing. You can use the Publish button to create a new published
version that matches the latest draft
version. If you now click the Published JSON button, you will see a very similar JSON structure.
Let’s talk about Code
Learn how to kickstart a new CMS project with your favorite technology on our Quickstart Page.
The fastest way to create and connect a frontend is to use the terminal command provided in step 2 of the Get Started section of your newly created space:
When executing this command, you can choose from a variety of popular frontend frameworks. After having completed the installation wizard, you can install the project dependencies and launch the framework's local development server.
Experimenting with Content
Now, you can open your Home story and experiment with the content shown on the right-hand side. We encourage you to create, edit, move, and delete the content to experience how the Visual Editor works. You can also try hovering over the preview area and clicking on the outlined components to open the corresponding content on the right-hand side.
Ultimate Tutorial Series
The following tutorials are the ideal next step to take after having worked through this resource. The Ultimate Tutorial Series provides you with bite-sized, easy-to-follow content pieces, assisting you in developing and deploying your first Storyblok web project with the technology of your choice!