Recipe site in Gatsby and Firebase-2

Photo by Mathilda Khoo on Unsplash

Welcome to part-2 of the series. You can find part-1 here.

Let’s start from where we had left. We had configured firebase in the previous part and now we will start to connect it to our code.

We will be first installing a plugin to connect gatsby with firebase called gatsby-firesource. Details of the plugins are here.

So, head over to the terminal and stop gatsby develop , if running and run npm i gatsby-firesource to install it.

npm i

Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook. You can find more details about it here.

Gatsby Cookbook

Next, restart the gatsby development server by running gatsby develop from terminal. It should run successfully, if no errors.

Now to check if everything is working fine, we can run the graphql query in the playground at http://localhost:8000/___graphql, which we will soon use in our code.

The query is returning both of our recipes with all the details successfully.


This completes part-2 of the series. You can find part-3 here.

You can find the code for the same in this github repo.




Founder TWD, JavaScript & ReactJS Trainer, Youtuber, Blogger

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A beginner’s guide to understanding Closures in JavaScript


How to develop a Cross-platform Fitness Application in React Native — Part I?

My First React Project

Angular Basics-10

next-export-i18n v1.3.0: respecing the user’s default language

Outsourcing ReactJS Development Services | Learn How To Do It Right

YouTube Video | JavaScript Form Validation

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nabendu Biswas

Nabendu Biswas

Founder TWD, JavaScript & ReactJS Trainer, Youtuber, Blogger

More from Medium

Understanding NodeJS by building a Task App

How to Deploy Several React Apps in One Node.js server, Without the Tears 😭

Understanding Docker in Nodejs for Web App Development

docker in nodejs

How to Make a Discord Bot in Node.js