Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Starter project for Gatsby.js with Firebase authentication and dynamic pages from Firestore collections.
Gatsby Firebase Starter is a boilerplate project that gives Gatsby.js developers a pre-configured starting point for Firebase Authentication and Firestore-backed dynamic pages.
Gatsby Firebase Starter is a starter repository that combines Gatsby.js with Firebase services. It accepts a Firebase project configuration, which you paste into firebaseConfig.js, and produces a static site with dynamic pages generated from Firestore collections at build time. The starter also includes a complete authentication system covering sign-in, sign-up, sign-out, password reset, email verification, and social logins. It is authored by Ovidiu-Mihai Belciug and is available on GitHub under the repository name ovidiumihaibelciug/gatsby-firebase-starter.
gatsby new my-firebase-starter ovidiumihaibelciug/gatsby-firebase-starter.firebaseConfig.js with settings from your Firebase console.gatsby develop, which runs at http://localhost:8000 and includes GraphiQL at /___graphql for querying data.templates.js to map URL paths to Firestore collections, selecting the fields to query and the template file that renders them.Yes. The starter is a public GitHub repository, so you can clone it, create new projects from it with the Gatsby CLI, and deploy it anywhere Gatsby sites run. The associated Firebase services have their own free tiers; the starter itself has no license fees.
templates.js is the configuration file that turns Firestore collections into static pages. In it you define an array of routes, each with a URL path, a collection name, a URL parameter, the context fields to retrieve, and the filename of the template component used to render the page. This is how the starter generates a page for every document in the collection at build time.
Basic familiarity with the Firebase console helps, because you need to create a project and paste its configuration into firebaseConfig.js. The starter handles the rest: authentication methods are implemented, and the Users and Posts collections give you example data structures to copy.
Yes. The Netlify deploy button is one option, but the starter is a standard Gatsby project. You can deploy it to any static hosting service that supports Gatsby, such as Vercel, Cloudflare Pages, or Amazon S3, by building the site and uploading the generated public folder.
The starter uses SCSS for styling, with components organized using the Atomic Design methodology. The source folder contains atoms, molecules, and scene layers under src/components, so component styles are modular and reusable.
