How to log in as admin in the app Find a Trainer?

I copied to study the app Find a Trainer - https://bubble.io/documentation

1 - It has a user and an admin page.

How to set up or log in as admin?
The “Register” option only has Trainer or Seeker!

2 - By the way, what does that RSVP mean?

I already figured out how to do it.

Bubble has a users’ functionality.
Although keenly having researched and studied posts and example apps I was not understanding how Bubble handles users. The posts in the forum did not seem very clear to me. But it’s actually a lot easier than I thought.

I would advise anyone who starts in Bubble to explore the “Find a Trainer” app early on.

If it’s useful to someone, follow these steps and use the data below to experiment.

“Find a Trainer” has predefined 3 types of user:
Admin, Trainer, Seeker.

But be careful, it have set up an administrator account, but not a registration option at the app launch. This has to be done in a tactical way.

It has 3 pages of profiles; Trainer, Seeker and Admin (see in Page: …)
In Data > Data Type > Users, have this fields:

  • Admin: yes / no
  • Seeker: Search in Data type, Seeker
  • Trainer: Search in Data type, Trainer

See in Workflow how these fields are handled.

Before registering users, you must register an admin in this way:
Create a temporary trainer preferably your actual email, then in the development mode and put in the user’s field of the user, yes. Then create dummy users. Always use the same password to avoid complications. If you use real email addresses you will receive purely sample messages.

Before registering users, you must register an administrator in this way:

  • Create a temporary Trainer preferably as your actual email.
  • Then, in the development mode, put in the user field Admin, the value yes.
  • Then create dummy users.

Always use the same password to avoid complications. If you use real email addresses you will receive purely sample messages. You can use the data below.

SUMMARY

  1. Create Admin (in the app, in Register)
    a. Email: use real email and choose Licensed trainer
    b. Fill in the profile as;

           i. Name: Chad F. Price
          ii. Address: 65 W 69th St, New York, NY 10023
    

    c. Log out.
    d. It is not necessary to follow up the email that is received immediately, as this;
    . “Get started with All Out Fitness” from "All Out Fitness [email protected]
    e. Under Development > Data App Data > All Users > Edit User (pen icon),

           i. in the admin field, type Yes.
          ii. in the trainer field, clear the data. It should be empty.
    
  2. Create Trainer (in the app, in Register)
    a. Email fictitious, e.g. [email protected], and choose Licensed trainer
    b. Fill in the profile as;

         i. Name: Frank Holler
        ii. Age: xx
       iii. Address: 133 W 74th St, New York, NY 10023
        iv. Expertise: Cardio
         v. Licenses: 12345
        vi. Personal description: Lorem ipsum ...
       vii. Save and Sign out.
    
  3. Activate Trainer profile
    a. Log in as Admin (remember the first step…)
    b. In Accept new trainers: Accept Chad Price or what ever …
    c. Sign out.

  4. Create Class:
    a. Log in as Trainer (remember step 2.)
    b. Fill New Class as;

          i. Session: Boddy Attack
          ii. Date: tomorrow ...
         iii. Min .: 5
          iv. Max ...: 10
          v. Duration: 45 mins
         vi. Description: Lorem ipsum ...
        vii. Adress: Great Lawn Softball Field 8, New York, NY 10024
       viii. Create class and Sign out.
    
  5. Create Seekers:
    a. [email protected]. Choose I’m a Fitness seeker, Accept, (wait …)
    b. Fill in the profile:

             i. Name: Brian Fulcher
            ii. Age: xx
           iii. Address: 147 W 79th St, New York, NY 10024
            iv. Personal desc .: Lorem ipsum ...
    

    c. Enroll in a class

          i. Find a Class
    
        1. Choose class …
        1. Enroll in this class …
        1. Buy … !!!

Unfortunately the app stops here!! It’s just an example app.

But, we can see that there is no need to create some connection between Data types and users. Any action taken on each Seeker or Trainer session is automatically linked to that user.

This is a way to configure users. From what I understand there are more ways.
But I have not yet realized, for example, the utility or necessity of (*):

  • Make changes to current user
  • Create an account for someone else
  • Assign a password to a user
  • Change the email for another user

(* It is in Workflow > Account.)

2 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.