Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Gatsby starter with Apollo Client, client-side routing, ESLint/Prettier, and Flex Grid components.
Gatsby Apollo Starter is a free, MIT-licensed starter template for building Gatsby sites with Apollo Client, client-side routing, and styled-components, created by Smakosh (smakosh.com). It gives developers a preconfigured React + Gatsby project that wires Apollo Provider, ESLint, Prettier, and reusable Flex Grid components so they can focus on building features rather than tooling.
Gatsby Apollo Starter is a GitHub template that scaffolds a Gatsby project with Apollo Client already connected for GraphQL data fetching and client-side routing enabled. It takes as input a GraphQL API endpoint defined in the GATSBY_GRAPHQL_API environment variable and site data stored in src/data/index.js, and it produces a working Gatsby site that can be started with yarn start. The template runs on Gatsby (React + GraphQL) and is authored by Smakosh, with the repository hosted on GitHub and published under the MIT License.
GATSBY_GRAPHQL_API environment variable at a GraphQL endpoint and use Apollo to fetch data in React components.src/data/index.js to add your own content, then reuse the Flex Grid components to lay out sections.yarn start to get a live development server with hot reloading, then iterate on pages and components.After cloning the repository, create a .env.development file in the project root and set GATSBY_GRAPHQL_API to your GraphQL endpoint; for local production builds, create a .env.production file with the same variable. Then edit site data in src/data/index.js, install dependencies with yarn, and start the dev server with yarn start. Use yarn reset to clear the .cache/ and public/ folders if you need a clean build.
Gatsby Apollo Starter is a boilerplate Gatsby project that comes with Apollo Client configured for GraphQL, client-side routing, ESLint, Prettier, and reusable Flex Grid components. It is free to use under the MIT License.
Create a .env.development file in the root directory and add GATSBY_GRAPHQL_API=your-api-url. If you are building locally for production, also create a .env.production file with the same variable.
The prerequisites list Yarn. Install dependencies with yarn, start the dev server with yarn start, and reset the cache with yarn reset.
Yes, the project is licensed under the MIT License, which allows free use, modification, and distribution.
The repository is contributed to by Smakosh, and it supports Smakosh via Patreon, but the template itself is open source.
