GithubHelp home page GithubHelp logo

alejandroaguilardlt / react-next-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from storyblok/react-next-boilerplate

0.0 0.0 0.0 154 KB

Nextjs Storyblok boilerplate

Home Page: https://www.storyblok.com/tp/add-a-headless-cms-to-next-js-in-5-minutes

JavaScript 82.10% CSS 17.90%

react-next-boilerplate's Introduction

Next.js Storyblok Boilerplate

This repository is a Next.js Storyblok starter template used in following 5 minute tutorial.

Requirements

To use this project you have to have a Storyblok account. If you don't have one yet you can register at Storyblok, it's free.

How to get started?

Read the Next.js tutorial about connecting Storyblok and Next.js

1. Clone the repo

  $ git clone https://github.com/storyblok/react-next-boilerplate.git

2. Install all dependecies

$  yarn # or npm install

3. Adding the Access token

Create a new empty Space and exchange the preview token with your own in lib/storyblok.js.

// in lib/storyblok.js
const Storyblok = new StoryblokClient({
    accessToken: 'your-preview-token',
    cache: {
        clear: 'auto',
        type: 'memory'
    }
})

4. Run your project

Set the preview domain in Storyblok to http://localhost:3000/

# to run in developer mode
$ yarn dev # or npm run dev
# to build your project
$ yarn build # or npm run build

Resources

react-next-boilerplate's People

Contributors

onefriendaday avatar dohomi avatar ademarcardoso avatar kubessandra avatar samuells avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.