Skip to content

Dulakshi-2002/ProductStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product Store 🛒

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.


Features

Frontend:

  • 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.

Backend:

  • 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.

Tech Stack

Frontend:

  • React: Component-based UI library.
  • Chakra UI: Modern and accessible UI components.
  • React Router: For routing and navigation.

Backend:

  • 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.

Installation and Setup

Prerequisites:

  • Node.js (v16 or later)
  • npm or yarn
  • MongoDB (local or cloud instance)

Steps:

Clone the Repository:

git clone https://github.com/Dulakshi-2002/ProductStore.git
cd ProductStore

Install Dependencies:

Backend:

npm install

Frontend:

Navigate to the frontend directory and install the dependencies:

cd frontend
npm install

Set Up Environment Variables:

Create a .env file in the root directory and add the following:

MONGO_URI=your_mongodb_connection_string
PORT=5000
NODE_ENV=development

Run the Application

Start the Backend Server:

npm run dev

Start the Frontend Development Server:

cd frontend
npm run dev

Access the Application:

Project Structure

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

Screenshot 2025-04-14 004252 Screenshot 2025-04-14 004301 Screenshot 2025-04-14 004312 Screenshot 2025-04-14 004324 Screenshot 2025-04-14 004332

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors