- Open a shell terminal into google cloud
- Clone the application and change directories to it
git clone https://github.com/craigivy/node-automl.git
cd node-automl/
- choose from Run in the cloud shell or Run on google cloud below
- Install dependencies:
npm install
- Run the app:
DEBUG=myapp:* npm start
- Create a project and associate it to a billing ID
- Set the following environment variables variables. The project name will need to be unique.
export PROJECT=?
- Set the project and region
gcloud config set project $PROJECT
gcloud config set run/region us-central1
- Enable APIs
gcloud services enable run.googleapis.com
gcloud services enable artifactregistry.googleapis.com
gcloud services enable cloudbuild.googleapis.com
- Deploy the app to cloud run
gcloud beta run deploy node-automl --source .
Originally generated with:
$ npx express-generator --view=hbs --git node-automl