Welcome to the NBA Jersey Shop, online store selling NBA player jerseys.
-
Clone the repository to your local computer:
$ git clone 'https://github.com/FilFib/NBAjerseyShop.git'
-
Navigate to the project directory:
$ cd NBAjesrseyShop
-
(Optional) It is recommended to create and activate a Python virtual environment:
$ python -m venv venv
Activate for windows:
$ python venv\Scripts\activate
Activate for Linux:
$ python venv/bin/activate
-
Install the required dependencies:
$ pip install -r requirements.txt
-
Create database 'db.sqlite3' using migration:
$ python manage.py migrate
-
Run the Django development server:
$ python manage.py runserver
The application will be available at http://localhost:8000/.
-
(Optional) Change the database to the one available at the link below with all NBA teams saved and 10 sample player jerseys:
https://drive.google.com/drive/folders/1vmaOkXcj8qwCzvUDUeTdR3fSuZd0w0zx?usp=sharing
For the frontend, we used HTML5, CSS3 and Bootstrap5, which allowed us to create an intuitive and user-friendly user interface.
We provided a strong backend foundation by using Python 3.11 and Django 4.2. Python offers the latest features, bug fixes and optimizations, which contributes to effective and modern application development. Django 4.2, as a high-level web framework, provides tools for quickly creating solid web applications.
The aim of the project was to create an online store enabling users to buy NBA players' jerseys, where orders and adding products are handled by the administrator. The website was created to improve skills in the Django framework, as a culmination of the comprehensive "Python from scratch" course at Software Development Acadamy.
An application created to manage user accounts. Enables registration, login and logout.
The shop application is responsible for displaying products on the home page and on the page with jerseys of a specific selected team, as well as on the page with details of the selected product.
It allows you to view the contents of the basket, add and remove products, as well as update the quantity of the selected product. Everything was implemented using sessions.
Responsible for placing orders and saving them to the database. This application also allows you to view previously placed orders.
All order processing and adding products is possible thanks to the administration panel.
Using the built-in test module provided by Django, specifically using the TestCase
class, we conducted comprehensive unit tests of the implemented components of our applications.
The report on the level of code coverage with tests is presented below:
-
Filip Fibakiewicz
- LinkedIn Profile
Junior Python Developer
Junior Python Developer |