Skip to content

Latest commit

 

History

History

nodejs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Nodejs

Node.js express web app that simply says Hello from its root endpoint.

npm install
node index.js

Deploy to the Cloud

Deploy to GCP - Cloud Run

Use gcloud to build and deploy.

# Build with cloud build
gcloud builds submit --tag eu.gcr.io/${PROJECT_ID}/nodejs --project ${PROJECT_ID}

# Deploy and Run with Cloud Run
gcloud run deploy nodejs --project ${PROJECT_ID} --allow-unauthenticated --image eu.gcr.io/${PROJECT_ID}/nodejs --platform managed --region europe-west1