A full-stack application to manage and showcase products. This project includes a responsive frontend built with React and a robust backend powered by Node.js and Express. MongoDB is used as the database to store product details.
- Built with React for a fast and dynamic user interface.
- Styled using Chakra UI for modern and responsive designs.
- Dynamic product listing with the ability to create, update, and delete products.
- Dark mode toggle for enhanced user experience.
- Developed with Node.js and Express.js for RESTful APIs.
- MongoDB as the database for storing product information.
- Modular and scalable code structure for better maintainability.
- Error handling and environment-based configuration.
- React: Component-based UI library.
- Chakra UI: Modern and accessible UI components.
- React Router: For routing and navigation.
- Node.js: JavaScript runtime for server-side development.
- Express.js: Web framework for building RESTful APIs.
- MongoDB: NoSQL database for storing product data.
- Mongoose: ODM for MongoDB.
- Node.js (v16 or later)
- npm or yarn
- MongoDB (local or cloud instance)
git clone https://github.com/Dulakshi-2002/ProductStore.git
cd ProductStorenpm installNavigate to the frontend directory and install the dependencies:
cd frontend
npm installCreate a .env file in the root directory and add the following:
MONGO_URI=your_mongodb_connection_string
PORT=5000
NODE_ENV=developmentnpm run devcd frontend
npm run devBackend API: http://localhost:5000/api/products
Frontend: http://localhost:5173
ProductStore/
├── backend/
│ ├── config/
│ │ └── db.js # MongoDB connection
│ ├── controllers/
│ │ └── product.controller.js # Product API logic
│ ├── models/
│ │ └── product.model.js # Mongoose schema
│ ├── routes/
│ │ └── product.route.js # Product routes
│ └── server.js # Express server setup
├── frontend/
│ ├── src/
│ │ ├── components/ # Reusable React components
│ │ ├── pages/ # Page components (e.g., HomePage)
│ │ ├── store/ # State management (e.g., product store)
│ │ └── App.jsx # Main React app
│ └── public/ # Static assets
├── .env # Environment variables
├── package.json # Backend dependencies and scripts
└── README.md # Project documentation



