Ecommerce Auction Website

screenshot of Ecommerce Auction Website
django
html
bootstrap

An eBay-like e-commerce auction website built using Django 4, HTML 5, CSS 3, and Bootstrap 5 with a Bootswatch theme.

Overview

The Auction Website is an e-commerce auction website built using Django 4, HTML 5, CSS 3, and Bootstrap 5 with a Bootswatch theme. It utilizes a PostgreSQL database to store data and includes features such as charts built with Chart.js 2.

Features

  • eBay-like e-commerce auction platform
  • Built with Django 4, HTML 5, CSS 3, and Bootstrap 5
  • Utilizes a PostgreSQL database for data storage
  • Includes charts created with Chart.js 2

Prerequisites

  • Python 3.8-3.11
  • Django v4.2.4
  • PostgreSQL
  • Visual Studio Code

Installation Steps

  1. Create a virtual environment by running the following command from the root directory:

    python -m venv myenv
    
  2. Activate the virtual environment:

    • On macOS:
      source myenv/bin/activate
      
    • On Windows:
      myenv\Scripts\activate
      
  3. Install required dependencies by running the following command from the root directory:

    pip install -r requirements.txt
    
  4. Set up a PostgreSQL database:

    • Start psql terminal by running the command:

      psql
      
    • Create a new PostgreSQL database:

      CREATE DATABASE mydatabase;
      
    • Create a new database admin user:

      CREATE USER myuser WITH PASSWORD 'mypassword';
      GRANT ALL PRIVILEGES ON DATABASE mydatabase TO myuser;
      
    • Quit psql:

      \q
      
  5. Set up environment variables by running the following command from the root directory:

    touch .env
    
    • For Windows users: Manually create the .env file in Visual Studio Code by navigating to the Explorer and selecting the option "New File".

    • Declare environment variables in the .env file without using quotation marks.

  6. Run migrations by running the following command from the root directory:

    python manage.py migrate
    
  7. Create an admin user to access the Django Admin interface by running the following command from the root directory:

    python manage.py createsuperuser
    
    • Enter a username, email, and password when prompted.

Summary

The Auction Website is an e-commerce auction platform built using Django and other front-end technologies. It offers features similar to eBay and includes a PostgreSQL database for data storage. Installation instructions are provided to set up the necessary prerequisites and configure the environment. Once installed, users can run the application, run tests, and add data through the Django Admin interface. The code is released under the MIT license.

django
Django

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It follows the model-view-controller (MVC) architectural pattern, providing an extensive set of built-in tools and conventions to streamline the creation of robust and scalable web applications.

html
HTML

HTML templates are pre-designed and pre-built web pages that can be customized and used as a basis for building websites. They often include common elements such as headers, footers, menus, and content sections, and can be easily edited using HTML and CSS to fit specific branding and content needs.

bootstrap
Bootstrap

Bootstrap is the most popular CSS Framework for developing responsive and mobile-first websites.