GithubHelp home page GithubHelp logo

isabella232 / appengine-cloud-demo-portal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/appengine-cloud-demo-portal

0.0 0.0 0.0 5.21 MB

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

License: Apache License 2.0

Go 25.69% Dockerfile 0.44% Shell 0.09% HCL 3.51% JavaScript 1.31% TypeScript 68.97%

appengine-cloud-demo-portal's Introduction

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.

appengine-cloud-demo-portal's People

Contributors

dependabot[bot] avatar nownabe avatar renovate-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.