A fully functional product marketplace built using the MERN stack (MongoDB, Express.js, React, and Node.js). This application allows users to manage products, including viewing, adding, editing, and deleting items. It leverages a responsive design, intuitive UI, and backend integration for seamless user experience.
Home Page :
Create Product page :
Edit a Product :
- Frontend: Built with React, utilizing Chakra UI for a sleek and responsive design.
- Backend: Powered by Express.js and Node.js, ensuring efficient API handling.
- Database: MongoDB Atlas for secure and scalable data storage.
- CRUD Operations: Full control over product data (Create, Read, Update, Delete).
- Error Handling: User-friendly feedback with
react-hot-toastnotifications. - State Management: Integrated with a custom product store.
- Theming: Light and dark mode support using
useColorModeValue.
- React
- Chakra UI
- React Modal
- Vite for blazing-fast development
- Node.js
- Express.js
- MongoDB Atlas
- Mongoose for schema modeling
-
Clone the repository:
git clone https://github.com/your-username/MERN_product_market.git cd MERN_product_market -
Install dependencies for the backend:
npm install
-
Install dependencies for the frontend:
cd FrontEnd npm install -
Set up environment variables:
- Create a
.envfile in theBackEndfolder and add the following:PORT=5000 MONGO_URI=your-mongodb-connection-string
- Create a
-
Build the frontend:
cd FrontEnd npm run build -
Start the application:
npm start
MERN_product_market/
├── BackEnd/ # Express.js server and API logic
├── FrontEnd/ # React app (Frontend)
│ ├── src/ # Source files for React
│ ├── dist/ # Built production files
│ └── public/ # Static assets
├── package.json # Backend dependencies and scripts
└── README.md # Documentation
- Development Mode:
npm run dev - Production Build:
npm run build - Start Server:
npm start
Contributions are welcome! Please fork the repository and submit a pull request with your updates.
This project is licensed under the MIT License.
Made with ❤️ by Mustapha Bouddahr.

