Skip to content

Pactle E-Commerce App is a full-stack e-commerce web application where users can browse products, add them to a cart, submit reviews, and complete orders using Razorpay integration. The project supports user authentication, product filtering, and a smooth checkout experience.

Notifications You must be signed in to change notification settings

ayushchhanchar/pactle-Ecommerce-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ Full Stack E-Commerce Storefront

This is a full-stack e-commerce storefront built with:

  • Frontend: React + TypeScript + Tailwind CSS
  • Backend: Django REST Framework + PostgreSQL
  • Authentication: JWT (JSON Web Tokens)
  • Payments: Razorpay Integration
  • Deployment: Render (Backend), Vercel (Frontend)

πŸ“ Project Structure

ecommerce-store/ β”œβ”€β”€ backend/ # Django REST API β”œβ”€β”€ frontend/ # React + TypeScript frontend β”œβ”€β”€ .env.example # Environment variables (combined reference) β”œβ”€β”€ README.md └── ...


πŸš€ Features

  • πŸ” JWT-based User Authentication (Login/Register)
  • πŸ›οΈ Product Catalog with Categories & Filters
  • πŸ›’ Add to Cart & Quantity Management
  • 🧾 Order Placement with Razorpay Checkout
  • πŸ“ User Reviews (only when logged in)
  • πŸŒ— Light/Dark Mode Support (via Tailwind)
  • πŸ“¦ Admin panel for managing products (via Django Admin)
  • πŸ“ƒ API documentation

βš™οΈ Setup Instructions

1. Clone the Repository

git clone https://github.com/your-username/ecommerce-store.git
cd ecommerce-store

2. Backend Setup (/backend)
cd backend
python -m venv venv
source venv/bin/activate          # Windows: venv\Scripts\activate
pip install -r requirements.txt

Create .env file
cp .env.example .env
python manage.py migrate
python manage.py createsuperuser  # Create admin user
python manage.py runserver
API will be available at: http://localhost:8000/api/



3. Frontend Setup (/frontend)
cd frontend
npm install
cp .env.example .env
Set the base API URL and Razorpay key.

Start the React App
npm run dev
App will be live at: http://localhost:5173

πŸ§ͺ API Endpoints
Method	Endpoint	Description
GET	/products/	List all products
GET	/products/:id/	Get product detail
POST	/auth/register/	Register new user
POST	/auth/login/	Login & get JWT token
GET	/cart/	Get user cart
POST	/cart/	Add item to cart
DELETE	/cart/:id/	Remove from cart
POST	/orders/	Place order + pay
POST	/reviews/	Submit review (auth)

JWT token must be added in headers: Authorization: Bearer <token>

About

Pactle E-Commerce App is a full-stack e-commerce web application where users can browse products, add them to a cart, submit reviews, and complete orders using Razorpay integration. The project supports user authentication, product filtering, and a smooth checkout experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published