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
    • Connect with backend
    • Run app
    • Customization
    • Publishing
  • DEFINE BASICS
    • Adding users
    • Adding restaurant
Powered by GitBook
On this page

Was this helpful?

  1. DEFINE BASICS

Adding users

Let's add users for our system

PreviousPublishingNextAdding restaurant

Last updated 4 years ago

Was this helpful?

Go to Firebase console and in authentication menu item. Click "Get Started"

Select "Email/Password" in list.

Then, go to users tab and click "Add user".

Set login and password.

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.

Fill data in form as following:

Do the same for second user (for owner)

There are roles:

  1. admin

  2. owner

f
Click on Email/Password
Select first switch and click "Save"
Click on "Add user"
Fill email and password and then click "Add user"
Select "Add field"
Fill form and click "Add"