Problem
Design and build a complete e-commerce platform with authentication and role-based access control.
Constraints
Website should be secure with practices like input data validation and user authentication.
Hypothesis
Sanitizing input fields to prevent SQL injections and encrypting data in the database would provide adequate security for the platform.
Process
- Built admin panel with CRUD operations for inventory management
- Separated user and admin permissions with role-based access control
- Implemented JWT-based authentication for user sessions
Solution
A fully functional e-commerce experience with secure authentication, role-based dashboards, and database-driven inventory management.
Metrics
- Users could place orders and receive tracking information
- Admin panel supports full CRUD operations on the product catalog
- Input sanitization prevents SQL injection across all form fields
Evidence
- Locally deployed (no public link available)
Lessons Learned
Learned how to use PHP for backend logic and JavaScript for frontend logic, how to authenticate users through session cookies and JWT, and how to link a website to a database that can be modified through the application.