In Assignment 2, we added more to our e-commerce store to make it more “complex”. In Assignment 1, we focused on making the website for our products and designing it to be aesthetically pleasing. In this Assignment 2 however, we personalized our website for each of our users. We were tasked to direct the user to a Login page once they selected how much they wanted to purchase. If they did not have a registered account, the user can click the registration link below the password textbox to direct them to the registration page. After they create an account and/or logged in, the user receives an invoice of their purchase.
I feel that the hardest part was having the correct page sequence. I was required to have my products display directed to my login page. Then, I had to direct my login page to two different paths: either the registration page and then to invoice or straight to invoice after login. I had the hardest time trying to get my login go to invoice. I believe it had to do with my params being written incorrectly or that my codes aren’t in the correct order. A lot more code was added into my server.js, even with comments, I could kind of overwhelmed trying to scroll through it all and reorganizing.
I did not work on the project with a partner, but I did receive feedback and help on my Assignment 2 from a friend.
As mentioned above, I received assistance with my Assignment 2 from my friend. They helped check my code for the mistakes that didn’t allow my page to redirect properly. As for reorganizing my code in the correct order, I referred to Dan Port’s assignment that was in his repo. I had code that was overlapping, so I checked with his code to make sure I got the ones that worked.
This assigment was different in terms of their objective. Assignment 1 was more designed-focused where we designed our e-commerce store and allowed users to make a purchase. In Assignment 2, we upgraded our website to be more personalized by having the users create an account to login to the store to track their purchases. Developing this time assignment also took more time than Assignment 1, since there was a few stuff we needed to add to it that we haven’t learned. For example, my IR was ecryption and I was not familiar with it. I had to utilize ChatGPT since I did not know how “salt” and “hash” was.
100% of the time I did the project, I would say……
For sure, I am satisfied with my design for the login and registration page. It is a big upgrade from index, store, and invoice pages since back then, I did not have much creativity to make it look nice. As for how well it worked, I think I did better with my login page than my registration. I didn’t have proper validation for my registration, therefore, I was still able to get to invoice by putting random letters with no @zzz.com. But with my login, it prevented me from logging when I put something wrong or if I do not have an account registered.
If I could go back in time, I wish I put my more in doing my validations. Time management was again a problem, and even worse since this assignment was due one-two weeks before finals. If I only focused on this subject, I could have had a lot more time to make it better than how it currently is.