Skip to content

Commit 612d52e

Browse files
committed
Update readme file
1 parent 0063837 commit 612d52e

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,39 @@
1-
# node-gcp-app-engine-deploy-with-github-action
1+
# Deploy node.js app in Google App Engine using Github Action
2+
3+
> This project demonstrate how to deploy node.js sample app in Google App Engine using Github Action
4+
5+
## 🚀 Features
6+
7+
- ✨ Google cloud acount setup
8+
- ⚡ App Engine
9+
- 🔒 How to deploy node app from local
10+
11+
## 🛠 Tech Stack
12+
13+
- Node.js
14+
- Express
15+
- Google Cloud(App Engine)
16+
17+
## 🧑‍💻 Local Setup
18+
- Enable App Engine, App Engine Admin API, Cloud Build
19+
- Create a service account(with permission App Engine Admin, Cloud Build Editor, Storage Admin, Service Account User), create a key, download the key in local
20+
- In Google Cloud console select App Engine and create application in any region(this is one time activity and has to manually)
21+
- Add GitHub Secrets to your repo: Repo → Settings → Secrets and variables → Actions → New repository secret as GCP_SA_KEY = contents of key.json (JSON string)
22+
- Create a simple node.js app with app.yaml
23+
- Create a .github/workflows/deploy.yml file in root of your node app
24+
- When you push to GitHub, app will be deployed to App Engine
25+
26+
## 📦 Installation
27+
28+
```bash
29+
# Clone the repo
30+
git clone https://github.com/rupachowrasia/node-gcp-app-engine-deploy-with-github-action.git
31+
32+
# Move into the project directory
33+
cd node-gcp-app-engine-deploy-with-github-action
34+
35+
# Install dependencies
36+
npm install
37+
38+
# Run the app
39+
npm run start

0 commit comments

Comments
 (0)