Final Major Project — Starting the retailer app
So no I have a template to put information about the coffee shops in I need to start adding support for my retailer application so that retailers can generate content, submit it to firebase and then populate my template. I already have my Retailer application boiler plate in place but what I came to realise I don’t want any person to just be able to come in and view my retailer application so I’ve now created a basic log in page to go at the start before this:

So now I’d made this basic log in page I had to make it actually work, I used my experience working with my admin application for this which allowed me to make fairly quick work of putting the form all together and properly, then I began looking at the firebase tutorial to creating user account with an email address and a password, When you press the sign up button below the main form you get presented with a register page, it asks for a users email address and password and then submits this to firebase, providing that this is all done correctly firebase should accept it in which case you will loop back around to the log in screen ready to log in or you will receive an error telling you to try again:



A user can then use the form on the log in page to enter their username and password to get past this login screen and access the application behind it, similarly there is an error message if the user makes a mistake.


So the log in system works, email and password is good because firebase has support for things like resetting users password when they forget them and all that kind of stuff so that’s part of the back end that I don’t have to worry about.
The next part to work on with this is partly coding but it’s also thinking about how exactly I’m going to make this work. I created proper coffee admin in the understanding that I’m going to be submitting the basic information for new shops myself or having someone my end do it rather than the retailer but then at some point the retailer assumes responsiblility for their entry in firebase through the proper coffee retailer application, working out how I hand over from one to the other is important. The thing is that the email address, password and the User ID that firebase creates are in no way actually linked to a specific shop or anything yet, it’s simply an account with no permission to do anything, what I need to do is to give specific account access to specific shop data. I don’t want to pass over the job I‘m doing with admin over to retailers as it’s open to potential abuse of anyone just making a shop, it means extra work for me as it means creating a user friendly way of finding things like longitude and latitude and submitting them and I want to make sure that the shops added are really great and not any old cafe selling instant coffee can jump on it. Right now once somebody has signed up I can then add permission manually for them to have access to specific data and edit their own it’s just how I’m going to do this on a wider scale that needs to be considered.