Thank you for purchasing Restaurant-2, the most versatile and flexible jamstack template, Built by Stackrole using Gatsby and Netlfiy CMS.
Restaurant-2 comes with Home, About, Items, Faq, Contact pages. Each having a unique level layout and color customizations.
In this documentation, we will walk you thru each and every step that helps you fully customize and manage your content.
In this guide, we will walk you through step-by-step guidelines. To help launch your website.
Restaurant-2 Starter mostly follow this folder structure:
. ├── src │ └── components │ └── content │ └── gatsby-plugin-theme-ui │ └── index.js │ └── pages │ └── templates │ └── util ├── static │ └── admin │ └── assets ├── gatsby-config.js └── package.json
Note: if you migrating/updating your website keep a backup of
src/utilfolder as these contain all the date required for the website
To get Gatsby working, you need the following installed
Once installed, you can verify the same from your terminal.
node -v # v12.18.3 gatsby -v # Gatsby CLI version: 2.19.1 yarn --version # 1.22.5
After downloading your Restaurant-2 package from Gumroad, Unzip the zip file. Inside the package, you will find the following folder structure:
. ├── starter ├── documentation
You need to change the directory into the
Note: you need Gatsby CLI and Yarn installed prior to this
Once the installation is complete, run
yarn start to start the server.
After the development server is running it will show a URL from where you can see your website in action, mostly it would be http://localhost:8000
To use Netlify CMS in the local environment, run the following command:
Now visit http://localhost:8000/admin
Note: Make sure you have
Once you are on Netlify CMS, you can navigate to Page, Items, Menu, Appearance, and Settings to manage your website content and setting
You can select any collection to create, edit, and delete content
Pages > Home, here you can manage page info, featured images, Countup section, and Testimonials
Pages > About page, here you can manage page info and body of the page
Pages > Contact, here you can manage page info, and Google map
Pages > Faq, here you can manage page info, and add Faq's
Pages > Items, here you can manage page info
Items, here you can add a new item and manage page info, Title, Price, SEO description, Featured image, Slide images and category.
Categories, here you can add new categories and manage its title and image. You can select a category inside Items.
Each category page will contain all Items listed under their respective category.
Menu, from here you can manage the header menu.
Appearance, from here you can manage the Default and Dark theme colors, Site layout and Site font.
Settings play a key role in managing your website. Make sure, you stop your server(
ctrl+c) and restart the server(
yarn start) after changing the settings.
Settings > General, Change your Site title, Website URL, SEO description, Favicon, and other settings.
Settings > integrations to manage Google Analytics, and Disqus
Settings > Social Icons, Manage social media icons on the footer.
Settings > Footer, Here you can manage footer info
There are many awesome platforms to help you take your Gatsby website. Here are the instructions for Hosting Gatsby websites available on Gatsby's docs.
To take full advantage of Restaurant-2 you need to host with Netlify, where you can pair with Netlify CMS to manage the content otherwise you can always use markdown and JSON files to manage content and settings.
Once you have finished adding content your need to create a Github Private Repository. This repository should have contents from the
starter folder we created.
- Click New site from Git
- Connect your Github account
- Search and Select your repo.
- Leave build settings as default and Click Deploy
Your site deployment process will start and the website will be live in few minutes. Netlify will you give your site URL. for example
- In GitHub, go to your account Settings, and select OAuth Apps under Developer Settings.
- Select Register a new application.
For the Authorization callback URL, enter
https://api.netlify.com/auth/doneand homepage URL must be your Netlify site URL, and The other fields can contain anything you want.
When you complete the registration, you’ll be given a Client ID and a Client Secret for the app. You’ll need to add these to your Netlify site:
- Go to Site settings > Access control > OAuth.
- Under Authentication Providers, select Install Provider.
- Select GitHub and enter the Client ID and Client Secret, then save.
- Goto to your-site.netlify.app/admin/, and log in with your Github account.
You can read more about using OAuth provider tokens on your Netlify site here: https://docs.netlify.com/visitor-access/oauth-provider-tokens/#setup-and-settings
Connecting a domain name to a Netlify website is fairly simple. Check out this article we wrote on Adding custom domain for Netlify website on Stackrole
Thank you, We really appreciate you taking the time to build your website with our Restaurant-2. We would love to get your feedback.
If you are facing issues, please feel free to contact us via email firstname.lastname@example.org.
We would love to see what you have built, please share your website with us @stackrole
😀 ❤️ 🎉