Skip to content

pranavshankar1221/shoppy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ShopEasy E-Commerce Application

Setup Instructions

Prerequisites

Backend Setup

  1. Navigate to backend folder:
cd d:\shoppy\backend
  1. Install dependencies:
npm install
  1. Make sure MongoDB is running on your system

  2. Start the backend server:

npm start

The backend will run on http://localhost:5000

Frontend Setup

  1. Navigate to frontend folder:
cd d:\shoppy\frontend\E-commerce
  1. Install dependencies (if not already done):
npm install
  1. Start the development server:
npm run dev

The frontend will run on http://localhost:5173

Features

  • User Registration and Login with MongoDB
  • Product browsing with images
  • Shopping cart with quantity management
  • Total bill calculation
  • Multiple UPI payment options (Google Pay, PhonePe, Paytm, Amazon Pay)
  • Responsive design for all devices
  • User session management

Demo Mode

If the backend is not running, the app will work in demo mode with mock authentication.

API Endpoints

  • POST /api/auth/register - Register new user
  • POST /api/auth/login - Login user
  • GET /api/products - Get all products
  • POST /api/products/seed - Seed initial products (run once)

Troubleshooting

If you see "Registration failed":

  1. Make sure MongoDB is running
  2. Make sure backend server is running on port 5000
  3. Check console for detailed error messages
  4. The app will work in demo mode if backend is unavailable

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages