An eBay-like e-commerce auction website built using Django 4, HTML 5, CSS 3, and Bootstrap 5 with a Bootswatch theme.
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.
Create a virtual environment by running the following command from the root directory:
python -m venv myenv
Activate the virtual environment:
source myenv/bin/activate
myenv\Scripts\activate
Install required dependencies by running the following command from the root directory:
pip install -r requirements.txt
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
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.
Run migrations by running the following command from the root directory:
python manage.py migrate
Create an admin user to access the Django Admin interface by running the following command from the root directory:
python manage.py createsuperuser
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 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 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 is the most popular CSS Framework for developing responsive and mobile-first websites.