E-shop web application built using php routing. Instead of relying on the web server to map the request path to a file, all requests are forwarded to index.php which has defined routes and callbacks registered to each route. If the request URI is a valid route, the callback returns a page to the user else, redirected to the 404 page.
-
Login and registration system
-
Password reset
-
Ordering system
-
Update profile
-
Order history
-
CSRF protection
-
Input sanitisation
-
Create, modify and delete products, customers and faq
-
Unlimited product pictures
-
Image compression (php_gd): 50%
-
Image magic bytes verification
-
Create or select product category
-
Last 7 days sales and revenue stats using Chartjs
-
Modify contact details and privacy policy
- Create Virtual Host on your local Machine
- Create database
- Execute db-settings.sql
- Enter database config db.php
- Enable the php_gd/gd extension in php.ini
127.0.0.1 local.eshop.com
<VirtualHost local.eshop.com:80>
ServerAdmin [email protected]
DocumentRoot "C:/xampp/htdocs/eshop"
DirectoryIndex index.php
ServerName local.eshop.com
ServerAlias local.eshop.com
<Directory "C:/xampp/htdocs/eshop">
Options All
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
uri: /admin/login
username: admin
password: 123456