- Setup firebase project.
- Setup firebase web config at config folders.
- Authenticate menu
- Enable provider: Email/Password
- Add user with Email/Password
- Get User UID
- Set up firebase collection
- Change rule
service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if true; } } }
- firebase init
- Add collection 'Users'
- Add User UID from (3) as document-id
- Add fields [name, role=admin]
- Add collection 'Users'
- Add User UID from (3) as document-id
- Add fields [name, role=teacher, organizationId]
- Add indexes follow this file. https://github.com/opendream/school-dashboard/blob/master/dbIndex.csv
$ npm install
$ npm run start
$ npm run build
$ firebase deploy