AKSHAYBHOPANI / cloud-todo

React based Cloud To-Do app with OAuth and Firestore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cloud-todo

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.

Steps

  1. Create a new Project on Google Cloud
  2. Open Terminal and run -
git clone https://github.com/AKSHAYBHOPANI/cloud-todo
  1. Open Cloud Shell Editor and Expand Cloud To Do
  2. Replace cliendId in /index.js which you can get from OAuth Cloud Console API
  3. 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
  4. Open Cloud Shell Terminal and run -
cd cloud-todo/
yarn install
yarn start (Optional - To Make and Test Local Changes inside GCP)
  1. 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

  1. 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
  2. Test - Cloud Run Demo

In-Depth Step By Step Guide - Read On Google Cloud Community

Like my work? See More

About

React based Cloud To-Do app with OAuth and Firestore

License:MIT License


Languages

Language:JavaScript 66.5%Language:CSS 16.0%Language:HTML 15.8%Language:Dockerfile 1.6%