Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Gatsby starter for fullstack GraphQL apps with Apollo Server as a Netlify Function.

Free Bootstrap 4 HTML5 UI kit with buttons, sliders, modals, progress bars, and parallax effects for rapid front-end development.

Free Bootstrap 4 HTML5 car rental website template with booking form, hero header, timeline, and blog.

Opinionated Gatsby starter with TypeScript.

A minimal Gatsby blog template boilerplate with pagination, Google Analytics, SEO, sitemap, and Disqus comments.
Gatsby Starter Apollo Netlify is a boilerplate for building fullstack GraphQL applications that combines a Gatsby/React frontend with an Apollo Server exposed as a Netlify Function.
Gatsby Starter Apollo Netlify is a GitHub-hosted starter project published under the piducancore repository. It scaffolds a fullstack GraphQL app: the frontend is a default Gatsby site, and the backend is an Apollo Server running inside a Netlify Function located at functions/graphql/graphql.js. When you create a project with this starter, you get a working example that queries the local GraphQL endpoint using the useQuery hook from @apollo/client on the homepage. It runs locally through Netlify Dev, which proxies both the Gatsby site and the serverless function on a single port.
gatsby new my-new-project piducancore/gatsby-starter-apollo-netlify creates a new project with all starter files./.netlify/functions/graphql.src/pages/index.js shows a real query using useQuery from @apollo/client, ready to adapt.http://localhost:8888/.netlify/functions/graphql.netlify dev serves both the frontend and functions on port 8888; note that Gatsby's default port 8000 cannot access the functions.netlify login, netlify init, and netlify deploy handle deployment to Netlify from the command line.functions/graphql/graphql.js.netlify dev to test the entire stack on one port with hot-reloading.The README's usage flow is: create the project with gatsby new, navigate into the directory, and run netlify dev. The starter includes a serverless function that initializes Apollo Server, and a React page that queries it. For production, you deploy by logging in with netlify login, initializing a site with netlify init, and pushing updates with netlify deploy.
Yes, a Netlify account and the latest Netlify CLI installed globally are required to run the project with netlify dev and to deploy it.
Edit functions/graphql/graphql.js to add types, resolvers, and data sources for your Apollo Server.
Port 8000 is Gatsby's default dev server and does not proxy serverless functions. Use the Netlify Dev URL at localhost:8888 instead.
Run netlify login, then netlify init to configure a new or existing site, and netlify deploy to create a new deployment.
