- Clone this repository to your local.
- Copy
.env.example
content and create.env.development
in root directory then paste it. - Change the
GOOGLE_CLIENT_ID
with your Google OAuth 2.0 Client ID. - To run this application, run
npm run develop
in your terminal.
For Gatsby first timer, you need to install Gatsby globally to your local by running
npm install -g gatsby-cli
To get the Client ID for Google OAuth, go to this page
If you are a first timer, you will be asked to create a Project and OAuth Consent Page
After create project:
- Go to
Credential
menu. - In the OAuth 2.0 Client IDs section, create a new credential.
- When creating the credential you will asked to input:
- Credential Name
- Authorized JavaScript Origins: an URI where this Credential will be use. example if we want to run it on development localhost:8000 we need to add
http://localhost:8000
andhttp://localhost
. - Authorized redirect URIs: an URI where we approved the page to redirect.
- Then copy the Client ID from created credential
Go to this page and choose the OAuth Consent Screen, then you will be asked to fill:
- Your App Name
- User Support Email
- Your App Logo
- Link to your homepage
- Link to your privacy policy
- Link to your term of service