A gamified web application built with PHP and MySQL, designed to encourage and track eco-friendly behaviors. The platform features a robust backend architecture engineered to handle concurrent user interactions and data consistency.
- Backend: PHP (Procedural & OOP concepts)
- Database: MySQL (InnoDB for transactional integrity)
- Frontend: HTML5, CSS3, JavaScript
- Environment: Apache / WAMP Server
- Concurrency Collision Prevention: Implemented a unique identifier algorithm combining
UserIDandUnix Timestampsto mathematically guarantee file uniqueness during concurrent media uploads, preventing race conditions and file overwriting. - Gamification Engine: Engineered a relational database schema to track user points, dynamic leaderboard rankings, and achievement unlocks based on verified eco-actions.
- Stateless Authentication: Managed secure user sessions and role-based access control (RBAC) to differentiate between standard users and system administrators.
- Clone the repository to your local server directory (e.g.,
htdocsorwww). - Import the included
config/ecotrack.sqlorconfig/ecotrack_db.sqlblueprint into your MySQL instance to instantly generate the relational schema. - Ensure
dbConnect.phpis configured with your local database credentials (defaults to root / no password).