soham0005 / ElectroKart

https://strong-kringle-daacb6.netlify.app/
8 stars 7 forks source link

Store Accessories Data in MongoDB Using Node.js and MongoDB Atlas and Modifying UI via REST API #11

Open samriddhitiwary opened 14 hours ago

samriddhitiwary commented 14 hours ago

Description We need to shift the data source of Accessories from raw JSON data to MongoDB Atlas by creating a backend using Node.js. The UI will be updated to retrieve data from the MongoDB database using a REST API. This transition will involve building a backend that manages database operations, including the creation, retrieval, updating, and deletion of accessory data.

Steps to Reproduce the Issue Action 1: Set up a MongoDB Atlas cluster and create a collection for accessories. Action 2: Develop a Node.js backend using Express to connect to MongoDB Atlas. Action 3: Implement the REST API endpoints (GET, POST, PUT, DELETE) to manage accessory data. Action 4: Modify the frontend to retrieve accessory data via the REST API, replacing the existing static JSON data. Expected Behavior The Accessories data should be retrieved dynamically from MongoDB Atlas. The REST API should provide endpoints for managing accessory data (CRUD operations). The frontend UI should display the data retrieved from the database, with no reliance on static JSON.

Actual Behavior Currently, the Accessories data is being fetched from a static JSON file. No backend system is in place to dynamically manage accessory data. The UI is not connected to a REST API for retrieving or updating data.

Screenshots image image

Additional Context This transition is essential to improve the scalability of the application, allowing for easier management of accessory data, real-time updates, and dynamic rendering of the accessories on the UI. MongoDB Atlas will be used as the database, and the Node.js backend will facilitate the data management through a REST API.

samriddhitiwary commented 14 hours ago

@soham0005 Could please assign this issue to me under the label of GSSoC-exd and Hacktoberfest.

samriddhitiwary commented 4 hours ago

@soham0005 ??

soham0005 commented 4 hours ago

@samriddhitiwary, it is indeed a good idea to save into the database, before directly assigning it, i need to have a setup of backend. Would you mind to connnect to discuss the initial setup for this

samriddhitiwary commented 4 hours ago

@soham0005 sure

soham0005 commented 4 hours ago

@samriddhitiwary do connect on discord

samriddhitiwary commented 4 hours ago

@soham0005 I have never really used discord so how should I proceed for it? Can you send me the invitation

soham0005 commented 4 hours ago

@samriddhitiwary share your discord name

samriddhitiwary commented 4 hours ago

@soham0005 Samriddhi|Contributor