backend
Prerequisites
Development
- Install dependencies
./bin/setup_env.sh
- Run server
make run
Backend server will be served at localhost:8080 by default
Deploy to Heroku with Terraform
Prerequisites
- Heroku CLI latest version
- Terraform
To deploy the application to Heroku with Terraform, we need to create the Heroku API Key first:
$ heroku login
$ heroku authorizations:create --description <api key description>
And then, move to the deploy/heroku
folder and run the following steps:
Step 1: Copy the variable file and update the variables
$ cp terraform.tfvars.sample terraform.tfvars≠
You can get the tfvars
files from 1Password
Step 2: Initialize Terraform
$ terraform init
Step 3: Generate an execution plan
$ terraform plan -var-file="terraform.tfvars"
Step 5: Execute the generated plan
$ terraform apply -var-file="terraform.tfvars"
Step 6: Build the application and push to heroku
Wiki
Google OAuth2 Flow
https://developers.google.com/identity/sign-in/web/server-side-flow