This webpage uses PHP version 8.3
- You have installed and running MySQL
- Enter your password from MySQL database in php/database.php
- Set up database
- Run:
mysql -u root -p
- Enter password
- Create database
CREATE DATABASE computer_shop;
- Switch to it
USE computer_shop;
- Then:
SOURCE computer_shop.sql
(This will create tables)
- Run:
- Run php server locally
php -S localhost:8080 -t .
- Open http://localhost:8080/
- Sort items by price
- Filter items by characteristics
- Cart chosen items
- Add/remove to/from cart
- Store order on submit in orders.json
- Clearing cart button
- Storing not submitted cart in DB
- User can select only mails from DB
- Submit pop up on "Enter"
- Theme switcher
- Save user choice in localstorage
- Show quantity of items on "Cart" button in right corner of word
- Remove price from filters
- Item details (pop up / separate page)
- Make categories in sidebar generating dynamically
- Make body in pop up, and clear it depending on body, not how it looks now
- After delete item in cart on php Array of items transforms in object of items