Assigment 2 improved upon the online shop I made in Assingment 1 by adding a login and registration feature. Utilizing the fs package from node in my code users are able to add their login information (email, full name and password) to a .json file. Once their login data is logged into the .json users are able to sign-in and compelete their purchase.
This assignment taught me the importance of writing out a plan creating my codeto help me vizualize what I need to do. Having a little roadmap kept me on task and made things a little easier. Another thing I learned is to use ChatGPT wisely. Instead of asking for code I began to use it as a tool to help fill my knowledge gap rather than replace my knowledge.
I didn't have a partner to work with in Assignment 2, but I did recieve help from Professor Port to clean up my code.
My main area was help with fixing my code to add new user data to the .json file. I was able to get help from Professor Port. He also helped me to get my errors to display on webpage whenever users didn't format their information correctly (password not long enough, email not formatted correctly, etc).
The development for Assignment 2 became a little more complex because we needed to actually add data to a file rather than storing data on the server that edited (adding login info vs editing quantity data on the server).
40% thinking about how to do something. 20% writing the code. 40% debugging the code.
Formatting the login/registration page for this assignment went very well. The hardest part of this assignment was learning how to use the fs package. Finding a way to utilize this package correctly left me contemplating a lot more than the last assignment.
I would take more time to plan and do research. It always feels like a project is 75% preparation and 25% execution.