Skip to content

GoogleCloudPlatform/appengine-cloud-demo-portal

Repository files navigation

Cloud Demo Portal

Cloud Demo Portal is an App Engine web application which has small demos.

Cloud Demo Portal is not an official Google Cloud project.

Home

Deploy

Prerequisites

Clone this repository

git clone https://github.com/GoogleCloudPlatform/appengine-cloud-demo-portal.git
cd appengine-cloud-demo-portal

Apply Terraform

Make your .envrc.

cd terraform
cp .envrc.example .envrc
vi .envrc
source .envrc

Initialize terraform.

terraform init

Apply terraform.

terraform apply

Push source code and deploy app

Push source code and then Cloud Build triggers to deploy app are triggered automatically.

cd ..
git config --global credential.https://source.developers.google.com.helper gcloud.sh
git remote add google https://source.developers.google.com/p/${TF_VAR_project_id}/r/cloud-demos
git push google main

First builds for triggers named api and dispatch might fail because deploying them needs web (default) service to be deployed. After the build named web is finished, run api trigger manually. And after api is deployed, then run dispatch trigger manually.

You can run them on Console.

If authentication doesn't work, you can enable IAP on Console.

Development

Prerequisites

Setup git hooks.

scripts/init-git-hooks

Create application-default credentials.

gcloud auth application-default login

Create your .envrc and change PROJECT_ID to yours.

cp .envrc.example .envrc
vi .envrc

Run development servers.

docker-compose up

# on macOS
docker-compose -f docker-compose.macos.yaml up

Go to http://localhost:8080.

About

Cloud Demo Portal is an App Engine web application which has small demos.

Resources

License

Stars

Watchers

Forks