Gatsby Cookbook
Gatsby Cookbook
Gatsby Cookbook

This book is 80% complete

Last updated on 2020-06-17

About the Book

I have done quite a bit freelance work in WordPress development around nine years back(2011). Three things which I didn't like at that time with WordPress were, first, was little coding, as I was creating these sites in WordPress with themes. Second, the sites were really slow and third, a lot of these sites were hacked and client used to come back.

I have come a long way since then and now I work as JS developer (React/Angular). When this awesome static site generator GatsbyJS came into picture, I decided to dive into it. I needed to create a new blog site and some other personal sites. These sites are mostly static and Gatsby is a great way to use my React Skills and seems to also solve the problems which I had with Wordpress.

This book contains seven chapters, in which we will create seven real world production projects. Six of which are personally used by me and the seventh one by a client.

The content of the book is below -

  • Chapter 1 — Agency Site
  • Chapter 2 — Blog Site with Stackbit
  • Chapter 3 — Tourism Site with Contentful
  • Chapter 4 — Video Chat Site
  • Chapter 5 — Blog Site using mdx
  • Chapter 6 — Ecommerce site with Snipcart
  • Chapter 7 — Recipe site with firebase

About the Author

Nabendu Biswas
Nabendu Biswas

Nabendu Biswas is a Full Stack JavaScript Developer, who is working in the IT industry fro the past 15 years and had worked for worlds top development firms, and Investment banks. He is a passionate tech blogger, who blogs on and and you can find all of his blog on He is an all round nerd, passionate about everything JavaScript, ReactJS and GatsbyJS.

Table of Contents

  • Introduction
  • Chapter One - Agency Site
    • The Setup
    • Basic Styles
    • Sections
    • Work and About Page
    • Deploying Site
  • Chapter Two - Blog Site using Stackbit
    • The Setup
    • Domain Add
    • Gatsby Plugins
    • Adding Advertisements
  • Chapter Three - Tourism site with Contentful
    • The Setup
    • Navbar and Footer
    • SimpleHero Component
    • About Section
    • Hot Tips Section
    • Deploy Site
    • Image Optimization
    • Page Transition
    • Contact Form
    • Contentful Setup
    • Places Component
    • Blog Component
    • Photos Component
    • Gatsby Plugins
    • Add Advertisements
  • Chapter Four - Video Chat Site
    • The Setup
    • Twilio Function
    • The Code
    • Video Implementation
    • CSS Changes
  • Chapter Five - Blog Site using mdx
    • The motivation
    • The Setup
    • Blog with mdx
    • Author and Tags
    • Search Functionality
    • CSS Fix and Mobile Menu
    • Adding Series
    • Netlify Deployment
    • Contact Form
    • Gatsby Plugins
    • New Features and Fixes
  • Chapter Six - Ecommerce site with Snipcart
  • Chapter Seven - Recipe site with firebase

Authors have earned$9,416,927writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub