https://github.com/rupachowrasia/gcp-cloud-run-deploy-using-nodejs
A sample app to show how to deploy nodejs app in Google Cloud Run
https://github.com/rupachowrasia/gcp-cloud-run-deploy-using-nodejs
cloudrun deployment expressjs gcp gcp-cloud-run nodejs
Last synced: 10 months ago
JSON representation
A sample app to show how to deploy nodejs app in Google Cloud Run
- Host: GitHub
- URL: https://github.com/rupachowrasia/gcp-cloud-run-deploy-using-nodejs
- Owner: rupachowrasia
- Created: 2025-04-21T06:24:28.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-28T17:50:21.000Z (10 months ago)
- Last Synced: 2025-05-01T08:14:15.053Z (10 months ago)
- Topics: cloudrun, deployment, expressjs, gcp, gcp-cloud-run, nodejs
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy node.js app in Google Cloud Run
> This project demonstrate how to deploy node.js sample app in Google Cloud Run
## 🚀 Features
- ✨ Google cloud acount setup
- ⚡ Cloud Run
- 🔒 How to deploy app using Google cloud SDK from local
## 🛠 Tech Stack
- Node.js
- Express
- Google Cloud(Cloud Run)
## 🧑💻 Local Setup
- Create free account in google cloud if not already have
- Login to Google cloud console, create a new project, or can use existing one
- Link billing account to project if not already linked
- Create/Enable Cloud Run api from Google cloud console (this is one time activity and has to be done for first time)
- Install and setup google cloud cli(Google cloud sdk) in local as per OS
- Create simple node.js app in local
- Run from terminal - gcloud auth login (authenticate to google cloud)
- Run from terminal - gcloud config set project PROJECT_ID (set project id)
- Run from terminal - gcloud run deploy (follow the instructions basically you will get prompt to enable API for artifact registry, cloud run and cloud build, provide input as yes,you will get prompt for region as well, choose any region)
- Once deploy you will get a url, run in browser and check
- Voila its done now
Note: Make sure to delete all resources once done from Cloud Run, Cloud Build and Artifacts Registry
## 📦 Installation
```bash
# Clone the repo
git clone https://github.com/rupachowrasia/gcp-cloud-run-deploy-using-nodejs.git
# Move into the project directory
cd gcp-cloud-run-deploy-using-nodejs
# Install dependencies
npm install
# Run the app
npm run start