GithubHelp home page GithubHelp logo

gcpdemo's Introduction

Node.js app that allows you to test various GCP products/features

This app can be run as a container or google app engine project. Current capabilities include:

  • Ability to toggle the /health page from a 200 to a 500 Error for health check testing
  • Dialogflow and Chatbase bot tester
  • Pubsub message submissions
  • Google Cloud Spanner Database creation, data insert, and query
  • Git Commit latest manifest via gitops cloud builder(cloudbuild.yaml)

To Use:

Docker

You can create a container out of these file with the supplied Dockerfile or run the code in an app engine instance on GCP.

Optional:

By default nodemon is setup in the Dockerfile however you will see the comments to enable an init.sh script inplace of where nodemon starts. You can use this script to load other things like a file of variables for each GCP service. Edit the env.sh file to include the necessary api keys and the init.sh to start the node or nodemon server.

docker build -t gcpdemo:5.0 .
docker run -itd -p 8080:8080 gcpdemo:5.0

or if you want to map for active development

docker run -itd -p 8080:8080 -v [your/local/path/]:/usr/src/app gcpdemo:5.0

In GKE with Global LB

You'd have to edit the following files to make sure the container image path was correct. Default is pulling bkauf/gcpdemo:5.0 from dockerhub.com

kubectl create -f k8s/deployments/frontend-production.yaml
kubectl create -f k8s/services/frontend-prod.yaml

gcpdemo

Dialogflow bot screen

gcpdemo

gcpdemo's People

Contributors

bkauf avatar panickgit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gcpdemo's Issues

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.