top of page
Search

#4: Firebase and Miscellaneous Items

  • Writer: Wan Ning
    Wan Ning
  • Jan 17, 2018
  • 2 min read

Updated: Jan 30, 2018

This week, my team and I continued to work on the application.

I've learnt about how classes and podfiles work, and proceeded to make use of these to work on my application.


However, there were certain errors that occured while I was making the application. For example, I did not know that after installing and creating a podfile in your project folder, you can't use back the same .xcodeproj, and instead, have to use the .xcworkspace file to continue coding the application! This error took me a while to resolve.


I also managed to successfully link Firebase to the application, though it did take me some time to do so. Fortunately, both authentication and the linking of database works!



I've also recreated the login and sign up pages as I felt that it was much cleaner this way. I've also coded some design into this page -- borders to the buttons and paddings to the text field.


I've also managed to create the authentications and linked the sign-ups from both business and customer to the database!








Snippet to show that authentication was successful.


Snippet of how I've added data to the database. This chunk of code was placed inside an action for the log in buttons. I then replicated the code to create the part for the business users (where more storage of information is necessary). Firstly, I made validations to check if the email, username and password fields were filled in. After which, I checked for errors before creating the users with `Auth.auth().createUser(withEmail)`. I then made a reference to the database and added the information I needed to the database.


As mentioned earlier, I've also made some changes to the design this week as it was more user friendly this way. [NEW SIGN UP PAGES]


That's all I did this week! Next week, I'll be working on a web application used solely for business users. My team has also decided to use Git to collaborate our project folders instead of creating it separately. As we were all unfamiliar with the use of Git, I hope there'll be no errors regarding that...


Stay tuned for my team's progress next week!


Wan Ning


 
 
 

Comentarios


bottom of page