Covid-19 crisis: help local shops survive and thrive
This website is built using GatsbyJS and using Google Sheets as data source.
- Google sheet data source: https://docs.google.com/spreadsheets/d/1VT6yvROk2V_Z438YdzBHkjeplqOeaTkAR4SfifBsMqg/edit?usp=sharing
For Gatsby to have access to the google sheet, you need to setup a Google Cloud service user and add this user to the google sheet. For more info, check out the plugin docs.
Warning, for GOOGLE_CLOUD_PRIVATE_KEY make sure to replace all \n
with _
to work around a known AWS limitation.
Copy .env.example
to .env
and add the Google service user keys (see above).
You need to run npm install
or yarn install
to setup your dependencies, after which you can run the Gatsby commands:
To develop the site:
gatsby develop
To create a production build:
gatsby build
If you use Yarn, you can run the project locally using
yarn install
yarn start
To create a production build into the ./public
folder
yarn build
Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:
-
For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.
-
To dive straight into code samples, head to our documentation. In particular, check out the Guides, API Reference, and Advanced Tutorials sections in the sidebar.