Skip to content

πŸ›οΈ A simple and responsive e-commerce website built with Django, HTML, CSS, and JavaScript.

Notifications You must be signed in to change notification settings

mimaaiz08/codeaplha_ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ Django E-Commerce Website

A simple and responsive E-Commerce web application built using Django, HTML, CSS, and JavaScript, allowing users to register, log in, browse products, add items to the cart, and place orders.


πŸš€ Features

πŸ§‘β€πŸ’» User Authentication

  • Register, Login, and Logout system using Django’s built-in authentication.
  • Session-based authentication with personalized greetings.
  • User-specific shopping cart.

πŸ›’ Shopping Cart

  • Add, remove, and update item quantities (+ / - buttons).
  • Real-time cart updates and total calculation.
  • Persistent cart for logged-in users.

πŸ’» Products

  • View product listings with images, descriptions, and prices.
  • Simple and responsive grid layout for all screen sizes.
  • Supports product images like laptops and headphones.

πŸ’³ Checkout System

  • Checkout page for order details and confirmation.
  • Simple order placement simulation.
  • Clears cart automatically after order completion.

🎨 Frontend

  • Built completely with HTML5, CSS3, and Vanilla JavaScript β€” no Bootstrap or Tailwind.
  • Clean and minimal UI with responsive layout.
  • Separate pages for Login, Register, Cart, Checkout, and Home.

πŸ› οΈ Technology Stack

Component Technology
Backend Django 5.2.7
Frontend HTML5, CSS3, JavaScript (ES6)
Database SQLite
Authentication Django Built-in Auth
Media Handling Django Static & Media Management

βš™οΈ Installation & Setup

  1. Clone the repository

    git clone <repository-url>
    cd codeaplha_ecommerce
  2. Create and activate virtual environment

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Run migrations

    python manage.py makemigrations
    python manage.py migrate
  5. Create a superuser

    python manage.py createsuperuser
  6. Start the development server

    python manage.py runserver
  7. Access the application

πŸ“‚ Project Structure

ecommerce/
β”œβ”€β”€ customer_users/         # User authentication and home page
β”œβ”€β”€ shop_products/          # Product models and logic
β”œβ”€β”€ shop_cart/              # Cart and checkout functionality
β”œβ”€β”€ static/                 # Static assets (CSS, JS, images)
β”œβ”€β”€ templates/              # HTML templates
β”œβ”€β”€ db.sqlite3              # Database file
β”œβ”€β”€ manage.py
└── requirements.txt

🧠 How It Works

1.User registers/logs in to access the platform.

2.Products are displayed on the homepage from the database.

3.Users can add items to their cart, adjust quantities, or remove them.

4.The cart total updates dynamically.

5.On checkout, users fill in details and confirm the order.

6.The thank-you page confirms successful order placement.

🧰 Admin Panel

The Django Admin Dashboard provides powerful management tools:

Add and manage Products

Manage Users and Orders

Edit Product details and Prices

Access via: πŸ‘‰ http://127.0.0.1:8000/admin/

πŸ‘¨β€πŸ’» Author

Muhammed Ismail Maaiz Built using Django, HTML, CSS, and JavaScript.

About

πŸ›οΈ A simple and responsive e-commerce website built with Django, HTML, CSS, and JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •