Simple example to deploy an Endpoint in Google Cloud
This repository shows how to make a simple endpoint deployment done in nodejs and express by creating and using 'secrets' to store environment variables.
-
Acquire local credentials for authenticating with Google Cloud Platform APIs:
gcloud auth application-default login
-
Clone this repo:
git clone https://github.com/Aleho84/cloud-run-test.git
-
Install dependencies:
npm install
-
Run the sample with
npm
npm start
-
Visit the application at http://localhost:8080.
To deploy a sample application:
-
Use the Google Cloud Console to create a Google Cloud Platform project.
-
Enable billing for your project.
-
Use the Cloud SDK to deploy your app.
gcloud app deploy
-
View your deployed application at
https://YOUR_PROJECT_ID.appspot.com
.
- @aleho84 - Idea & Initial work