Food Hunter
Search…
Food Hunter
Introduction
Before installation
Prepare Firebase
Setup database
Admin installation
Import demo data
Deploy backend
Run local
Deploy frontend
Client app installation
About
Features
Run app
Customization
Publishing
DEFINE BASICS
Adding users
Adding restaurant
Powered By
GitBook
Adding users
Let's add users for our system
Go to Firebase console and in authentication menu item. Click "Get Started"
f
Select "Email/Password" in list.
Click on Email/Password
Select first switch and click "Save"
Then, go to users tab and click "Add user".
Click on "Add user"
Set login and password.
Fill email and password and then click "Add user"
Add at least 2 users.
Then, login by this users in our system on localhost. After login will automatically create users collection in database.
Setting roles
Go to Cloud Firestore in Firebase console and to users collection. add role field with "admin" or "owner" string value.
Select "Add field"
Fill data in form as following:
Fill form and click "Add"
Do the same for second user (for owner)
There are roles:
1.
admin
2.
owner
Client app installation - Previous
Publishing
Next - DEFINE BASICS
Adding restaurant
Last modified
1yr ago
Copy link
Contents
Setting roles