May 2020

Friday, May 1, 2020

Shopping Cart system using MERN stack - Part 3





It has been a couple of weeks since we started implementation. It has been not easy to manage the workflow among the group members. Even though the we have used GitHub as our version controlling platform, the correct utilization of the platform was a bit confusing for the group members. So we decided to learn about the correct workflow a team should follow to properly utilize GitHub. 



After learning the correct workflow depicted as above we were able to get back on track and work smoothly, there were still hiccups. We were a bit hesitant to use the git work flow at once because one wrong move can remove all the work we have done but it all worked out fine and we are much confident about it now.


Project implementation


While implementing the Product.js controller i came across several problems. While implementing the product add function it was needed to send the product details from the front end form to the back end as a form for that i had to use dependency named formidable , this dependency also comes in handy with file uploads since we need to upload a product image it was a good option. The rest of the methods such as updating , deleting , get a product , retrieve product image , retrieve all the products was implemented. Next step was to create the routes for the above created methods.