Contentful Gatsby Boilerplate is a starting point for spinning up a modern Contentful / Gatsby project
- Clone the repo:
$ git clone git@github.com:will-hitchcock/contentful-gatsby-boilerplate.git
- Move into the project directory:
$ cd contentful-gatsby-boilerplate
- Set environment variables:
Make a copy of sample.env:
$ cp sample.env .env
Add your Contentful API keys
- Install node packages:
$ npm install
- Run the app for local dev:
$ npm run dev
Navigate to http://localhost:8000
- Run storybook
npm run storybook
Navigate to http://localhost:6006
To run the full test suite:
$ npm test
Run test suite in watch mode:
$ npm run test:watch
Run the linter:
npm run lint