E commerce system using MERN stack - Part 2
After setting up the project , it was time to get into coding , it was decided to implement the back-end first.
An express server was setup after installing the necessary dependencies. We opted to go with an open- source MongoDB GUI named Robo 3T . Once the necessary database connection was created and with the required project structure the project was pushed to a repository created on GitHub so that all the members of the team could follow the same structure.
I started working on the product model as it was a necessity for the requirements I had to follow. And then within the controllers folder I created the required methods that a stock manager needs to conduct the CRUD services , next within the routes folder the required routes were implemented to act as REST API to the HTTP end points such as GET,POST,PUT and DELETE.
0 comments :
Post a Comment