Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Gatsby starter that connects to a Contentful account and deploys to Netlify.
Gatsby Simple Contentful Starter is a minimal Gatsby starter that connects a Gatsby site to a Contentful content model named homePage and is designed to deploy to Netlify.
Gatsby Simple Contentful Starter is a starter template for the Gatsby static site generator that fetches content from a Contentful account. It requires a Contentful space and an access token, which you supply in environment variables, and it expects a content model called homePage to exist in that space. The starter outputs a statically generated website that can be built locally with gatsby develop and deployed to Netlify. It was created by Connor Wilson and includes a live demo hosted on Netlify.
.env file, following the instructions in sample.env.homePage, so you can focus on one page of content rather than a complex setup.npm i to install dependencies and gatsby develop for local development, which matches the default Gatsby workflow.homePage model, it is a quick starting point for a one-page site backed by content from Contentful.gatsby new my-fun-site with the starter's repository URL to scaffold a project that talks to Contentful.sample.env to .env and fill in your Contentful space details so the starter can query the homePage content model.The starter is configured to read from a Contentful content model named homePage. You need to create this model in your Contentful space and populate it with content before the site will have data to display.
Push your project to a Git repository, import the repository on Netlify, and add your Contentful credentials as environment variables. The README also links to a Medium article that walks through the full process.
Yes. Rename the sample.env file to .env in the project root and fill in your Contentful details. Then run npm i to install dependencies and gatsby develop to start the development server.
