Restaurant Site Project with GatsbyJS-18

Image for post
Image for post
Photo by Toa Heftiba on Unsplash

Welcome to part-18 of the series. You can find part-17 here.

There is a feature which is pending in our site and this is of Webhooks. We have added all menu items, but if we want to change one item or new to add some new items. In such cases after adding the data in contentful, we have to trigger the deploy in our netlify.

We can automate this process and it helps, if we are creating a site with ecommerce feature for a client, to whom we had only given contentful access. Now, they can just change the data in contentful and the site will be re-deployed with the change.

So, let’s head over to netlify for our site and click on Site Settings.

Image for post
Image for post
Site Settings

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

Image for post
Image for post
Gatsby Cookbook

After the build is done, when we move back to our site, we can see the changes in place.

Image for post
Image for post
Changes

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

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