Skip to content

Latest commit

 

History

History
87 lines (55 loc) · 1.35 KB

File metadata and controls

87 lines (55 loc) · 1.35 KB

GSP643 - Build a Serverless Web App with Firebase

Task 1. Provisioning the Firebase environment

Task 2. Install the Firebase CLI

  1. Open IDE

  2. Application menu > Terminal > New terminal

  3. Clone repo

    git clone https://github.com/rosera/pet-theory.git
  4. Open folder Open Folder > pet-theory > lab02

  5. Install dependencies

    npm i && npm audit fix --force

Task 3. Setup a Firestore Database

  1. Set default region

    gcloud config set compute/region us-central1
  2. Enable app engine

    gcloud app create --region=us-central
  3. Buat database

    gcloud firestore databases create --region=us-central

Task 4. Create a Firebase project

Task 5. Register your app

Task 6. Authenticate to Firebase and Deploy

  1. Auth

    firebase login --no-localhost
  2. Init

    firebase init

Task 7. Set up authentication and a database

Task 8. Scenario: set up the application

Task 9. Configure Firestore authentication and add sign-in to your web app

  1. list directory with permission

    ls -l
  2. Config

    pet-theory/lab02/firestore.rules

Task 10. Deploy your application

  1. Deploy

    firebase deploy

Task 11. Add a customer page to your web app