E-commerce website (Using Django Rest Framework & React)

E-commerce Website using Django & React

This e-commerce platform is a full-stack web application that is built using Django (backend) and React (frontend). It allows users to browse products, add items to the cart, manage orders, and complete purchases through a secure payment system. The backend efficiently handles authentication, product management, and API communication, while the frontend ensures a seamless shopping experience.

Key Features

1. User Authentication & Authorization – Secure login and signup using Django authentication.
2. Product Management – Add, update, delete, and manage product listings with images, prices, and descriptions.
3. Shopping Cart System – Users can add, update, and remove products before proceeding to checkout.
4. Order Processing – Orders are placed, stored, and updated after successful payment.
5. Payment Integration – Multiple payment options for a smooth checkout experience.
6. Admin Dashboard – Superusers can manage products, orders, and users from the backend.
7. API-Based Communication—The Django REST Framework (DRF) serves data to the React front end.
8. Responsive UI – Fully optimized for desktop and mobile devices.

Technology Stack:

Backend (Django & Django REST Framework)

1. Django – Handles API development, authentication, and database operations.
2. Django REST Framework (DRF) – Provides API endpoints for frontend interaction.
3. PostgreSQL / SQLite – Database for storing users, products, and orders.
4. JWT Authentication – Secure login and session management.

Frontend (React)

1. React.js – Interactive user interface for browsing products and managing the cart.
2. React Router – Enables navigation between pages.
3. Tailwind CSS / Bootstrap – Responsive and modern UI design.

Installation & Setup Guide

1️.Backend (Django Setup):

1. Install Dependencies:

RWP-Install-Dependencies

2. Create Django Project & App:

RWP-Create-Django

3. Configure Database & Authentication in settings.py.

4. Run Migrations & Create Superuser:

5. Run the Server:

2️. Frontend (React Setup)

1. Initialize React App:

RWP-Initialize-React

2. Install Required Packages:

RWP-Install-Required

3. Set Up API Calls using Axios for fetching products.

4. Create Components for:

Navbar & Footer

Product Listing Page

Product Detail Page

Cart & Checkout Page

5. Start the React App:

RWP-Start-the-React

Workflow of the Application:

1. Users visit the homepage → Browse products → Add to cart.
2. User Login/Register (via JWT authentication).
3. Proceed to Checkout → Choose Payment Method → Place Order.
4. Admins Manage Products via Django Admin Panel.
5. API Fetches Updated Data → Products & Orders are updated in real time.

Use Cases:

1. Retail Businesses – Sell products online with a smooth user experience.
2. Digital Marketplaces – Host multiple vendors and manage transactions.
3. Custom E-commerce Solutions – Adaptable for various industries.

Video Tutorial