Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 693 Bytes

README.md

File metadata and controls

34 lines (30 loc) · 693 Bytes

Wait and it

Give phone number to restaurant, and receive SMS when there is table free.

I also used Zapier and Twilio to send E-Mail and SMS.

My firebase security rules:

{
  "rules": {
    "emails": {
      "$emailId": {
        ".read": "false",
        ".write": "auth != null"
      }
    },
    "textMessages": {
      "$textMessageId": {
        ".read": "false",
        ".write": "auth != null"
      }
    },
    "users": {
      "$userId": {
        ".read": "auth != null && auth.id == $userId",
        ".write": "auth != null && auth.id == $userId"
      }
    }
  }
}

Code was adapted from angularcourse.com