# Fashion-Factory
This is a simple shopping website that I built as my DBMS project where the admin can perform CRUD operations on the clothing items and the users can buy the same.

# Technologies used
The frontend is built using HTML5 and CSS3, backend using PHP and database managed by MySQL.

# Steps to run the application
1. First and foremost install Xampp in your local machine.
2. Once its done download the files in this repo into a folder (you can name the folder as per your wish) 'Fashion-factory' created mandatorily in the 'htdocs' folder. You can find it in C:\xampp.
3. Open the folder in VS code or anyother editor of your choice if your interested to check the source code.
4. Now open xampp app and click on Start button for both Apache and MySQL.
5. Click admin button in the MySQL row. This opens a dashboard where the database can be created.
6. On the left column you can find a new button to create a new database. Name the database as 'clothing' and click GO. Congo you successfully created the database.
7. Now click on the clothing database and click import and choose 'clothing.sql' from this folder. This will create all the required tables of the website.
8. You are all set. Now just type this url 'http://localhost/Fashion-factory/index.php' in the browser and you will land on the index page of the shopping webiste.
9. Top left corner you can find the profile button to login as a user or admin.
  * If you want to access the user dashboard you need to register first and then login with the same credentials.
  * If you want to access the admin dashboard use this credential:
    - Username: admin1
    - Password: 1nimda
10. You can also provide feedback as a form is provided for the same in the home page.

# Snapshots
## Home Page
![Screenshot (53)](https://user-images.githubusercontent.com/65860350/148090518-d1745156-d06c-4a33-a8a6-08079965653f.png)
![Screenshot (54)](https://user-images.githubusercontent.com/65860350/148090523-0027a87c-9e36-43d1-9f73-b9c3f33789a5.png)

## User & Admin Login Page
![Screenshot (55)](https://user-images.githubusercontent.com/65860350/148090630-c89f70ab-4877-4a24-b085-9e435736c027.png)
![Screenshot (72)](https://user-images.githubusercontent.com/65860350/148090641-8cc8a088-6730-42a6-bbca-2ec61714793a.png)
![Screenshot (80)](https://user-images.githubusercontent.com/65860350/148090644-ae04b0bf-4e2b-4812-94c2-20bf130c3d8d.png)

## User & Admin Dashboard
![Screenshot (89)](https://user-images.githubusercontent.com/65860350/148090721-66d23863-7819-4176-b605-4062e4f5d50d.png)
![Screenshot (97)](https://user-images.githubusercontent.com/65860350/148090728-018acd89-7818-4cba-8982-ef193887975c.png)

## Pages to perform CRUD operations
![Screenshot (90)](https://user-images.githubusercontent.com/65860350/148090845-92e5ec0a-3811-491d-98a6-05faa1a52da0.png)
![Screenshot (92)](https://user-images.githubusercontent.com/65860350/148090853-8d600276-d7c0-4744-bc45-3d03639ff9a7.png)
![Screenshot (93)](https://user-images.githubusercontent.com/65860350/148090854-d354cc50-22c3-4e04-bbb7-13e0a1b66b62.png)

## Alerts
![Screenshot (91)](https://user-images.githubusercontent.com/65860350/148090893-879a512a-fe2b-42ae-929b-c1f81466bd8e.png)
![Screenshot (99)](https://user-images.githubusercontent.com/65860350/148091421-b05a609d-aeaf-4b7f-96ca-4b35f1a94b49.png)

## Men, Women, Kids Category Page
![Screenshot (96)](https://user-images.githubusercontent.com/65860350/148091096-6b5d940f-3168-4277-87cd-7539d8c4ebca.png)
![Screenshot (94)](https://user-images.githubusercontent.com/65860350/148091104-ceadd5a8-3604-4a18-b421-b1abf25e7311.png)
![Screenshot (95)](https://user-images.githubusercontent.com/65860350/148091106-7574a892-ed38-41d9-924a-3727a3451fec.png)

## Cart
![Screenshot (98)](https://user-images.githubusercontent.com/65860350/148091452-d7d0024c-c94c-4797-8ff8-e8ce6d61f3ec.png)

## Database
![Screenshot (100)](https://user-images.githubusercontent.com/65860350/148091813-08990726-cc84-400b-8989-9b77f4e9f474.png)
![Screenshot (101)](https://user-images.githubusercontent.com/65860350/148091821-74b93ccd-83f7-43bc-ba0b-00b944158d58.png)


