With Cloud To-Do you can remember things you want to achieve and improve your productivity. It is a React JS based full stack application using Firestore and OAuth on Google Cloud Platform.
- Create a new Project on Google Cloud
- Open Terminal and run -
git clone https://github.com/AKSHAYBHOPANI/cloud-todo
- Open Cloud Shell Editor and Expand Cloud To Do
- Replace cliendId in /index.js which you can get from OAuth Cloud Console API
- Replace firebaseConfig in src/firebase.js with your config which you can get from creating a new project (When typing Project Name, your existing Google Cloud Project will auto appear. Use that to manage things in one place) in Firebase Console
- Open Cloud Shell Terminal and run -
cd cloud-todo/
yarn install
yarn start (Optional - To Make and Test Local Changes inside GCP)
- Deploy -
gcloud artifacts repositories create cloud-repo --repository-format=docker --location=${REGION}
docker build -t gcr.io/${PROJECT_ID}/cloud-repo/cloud-todo .
docker push gcr.io/${PROJECT_ID}/cloud-repo/cloud-todo
gcloud run deploy cloud-todo \
--image=gcr.io/${PROJECT_ID}/cloud-repo/cloud-todo
--allow-unauthenticated \
--region=${REGION} \
--platform=managed
- Copy the URL, Click on Edit Icon in Credentials Page under OAuth 2.0 Client IDs and paste the URL in Authorized JavaScript origins and Authorized redirect URI
- Test - Cloud Run Demo
In-Depth Step By Step Guide - Read On Google Cloud Community
Like my work? See More