-
Clone from Git and install dependancies
yarn
-
Starting the developer environment
Navigate into your new site’s directory and start it up.
cd desserts-app-marketing/ yarn start
*Note: For
EmailForm.js
to work you must set env variables for.env.development
and.env.production
. Found on Emailjs dashboard withthedessertsapp@gmail.com
. -
See live changes from the browser
Your site is now running at http://localhost:8000!
Wrapper for all pages is
src/layout/layout.js
Homepage is
src/pages/index.js
-
Deploying to Github Pages
Using the
gh-pages
plugin we can build our site and publish it on a seperate (gh-pages) branch to utilize Github Pages for hosting.yarn deploy
See more here -> Gatsby gh-pages docs