Giter Site home page Giter Site logo

gatsby-starter-contentstack's Introduction

Contentstack

Create a marketing website using Gatsby

About Contentstack: Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content.

About this project: Create professional marketing-themed website using Gatsby.

Live Demo

You can check the live demo to get first-hand experience of the website.

Prerequisites

  • Install nodejs on your system.
  • Install Gatsby CLI.

npm install -g gatsby-cli

Clone the repo

Clone the following repo. It contains all the required dependencies.

git clone https://github.com/contentstack/gatsby-starter-contentstack.git

Install dependencies

Go to the gatsby-starter-contentstack folder, and run the following:

  • cd gatsby-starter-contentstack
  • npm install

This downloads the required files and initializes the site.

Update Contentstack secrets

Copy the .env.sample file to .env.development and .env.production and update with your Contentstack details, including your API key and delivery token.

It should end up looking something like:

CONTENTSTACK_API_KEY='hunter2'
CONTENTSTACK_DELIVERY_TOKEN='hunter2token'
CONTENTSTACK_ENVIRONMENT='publishing environment'

Tutorial

We have created an in-depth tutorial on how you can create a website using Gatsby. By following the steps given in the tutorial, design a website similar to the one given in the demo.

Create a marketing website using Gatsby

More resources:

gatsby-starter-contentstack's People

Contributors

amitkanswal avatar aravindbuilt avatar asmit-patil avatar contentstack-admin avatar dependabot[bot] avatar dschau avatar harshalpatel91 avatar hiteshbal91 avatar karantalapalli avatar nandeesh-gajula avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gatsby-starter-contentstack's Issues

Starter fails on install

Whether using git clone or gatsby new, the starter fails on npm install. It appears to get hung up on [email protected] install. Screenshot attached.
Screen Shot 2020-03-13 at 11 29 10 AM

Gatsby info:

  System:
    OS: macOS 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 12.14.1 - ~/.nvm/versions/node/v12.14.1/bin/node
    Yarn: 1.19.1 - /usr/local/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v12.14.1/bin/npm
  Languages:
    Python: 2.7.10 - /usr/bin/python
  Browsers:
    Chrome: 80.0.3987.132
    Safari: 13.0.5
  npmPackages:
    gatsby: ^2.8.5 => 2.8.5
    gatsby-plugin-offline: ^2.0.5 => 2.0.5
    gatsby-plugin-react-helmet: ^3.0.0 => 3.0.0
    gatsby-source-contentstack: ^1.0.0 => 1.0.2
  npmGlobalPackages:
    gatsby-plugin-console-log-c: 1.0.0

gatsby-source-contentstack dependency is outdated and throwing an error

Hi,

currently the project is using "gatsby-source-contentstack" version 1.0.0
And I get this error.

TypeError: Cannot read property 'length' of undefined
  
  - asyncro.js:1 s
    [gatsby-starter-contentstack]/[asyncro]/dist/asyncro.js:1:846
  
  - asyncro.js:1 
    [gatsby-starter-contentstack]/[asyncro]/dist/asyncro.js:1:772

  - asyncro.js:1 
    [gatsby-starter-contentstack]/[asyncro]/dist/asyncro.js:1:818

  - new Promise

  - asyncro.js:1 i
    [gatsby-starter-contentstack]/[asyncro]/dist/asyncro.js:1:603

  - fetch.js:200 _callee7$
    [gatsby-starter-contentstack]/[gatsby-source-contentstack]/fetch.js:200:14

  - new Promise

  - fetch.js:242 fetchEntries
    [gatsby-starter-contentstack]/[gatsby-source-contentstack]/fetch.js:242:16

  - fetch.js:48 _callee$
    [gatsby-starter-contentstack]/[gatsby-source-contentstack]/fetch.js:48:14

After updating the dependency to the newest version "2.0.4" and changing "access_token" in "gatsby-config.js" to "delivery_token" it works as expected

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.