Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

PaulB-H/designsbytabitha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2024 - Updates in Progress

I built this years ago mostly as a way to see what PHP is like, and is still my only PHP project. While the order system is not getting much real use, I knew there were a lot of learning opportunities available in cleaning up the back end.

Main Changes:

Moved from CPannel to my own server with PHP/FPM and local MariaDB

Updated to use PDO

Replaced multiple statement queries with table join

Implemented transactions when making changes across different tables that must be atomic

Fixed cases where server and or client side validation was missing or incorrect.

Compressed mask images and rescaled them (they were 3024 x 4032 before!). Added loading gif placeholder to the mask images


There is still more I could fix... but I got some lessons out of what I cleaned up.


Designs by Tabitha

Made with:
HTML, CSS, JS, PHP, MariaDB/PDO

https://designsbytabitha.ca

Description

A website for a designer to showcase her work, and also manage hand-made mask orders from friends and family. There was no payment for the masks so a payment system was not required.

Details

The logo on the homepage was made by taking a commissioned image and running it through a vector converter, turning it into an SVG.

The masks page pulls data from the SQL database, and links to account management, so you can log in and place an order.

User passwords are hashed and salted before entry into the DB, and I used PHP-Session to manage logins.

I used a lightweight popup library called iziToast to help build the shopping cart functionality, and display other alerts and errors.

example of izitoast modal library in use

Example of izitoast in use

There is an administrator order-management section, providing the ability to filter and search orders, update their status, and keep track of items made so far vs how many were requested.

image of admin order management system

Example of admin order management system

Libraries / Frameworks / Packages

Tools