APRecycle is a web-based smart recycling system designed to encourage sustainable habits through gamification and AI technology.
Key Features:
- AI Bin Camera: Automatically classifies waste items using Google Gemini AI.
- Recycling Dashboard: Gamified experience for users to earn points and badges.
- Management Portals: Dedicated dashboards for Administrators and Eco-Moderators.
- Ensure WAMP Server is installed and running.
- Move the project folder into your WAMP web directory:
- Path:
C:\wamp64\www\APRecycle\
- Path:
- Open phpMyAdmin (
http://localhost/phpmyadmin). - Create a new database named
aprecycle(Collation: utf8mb4_0900_ai_ci) (Must match the name inphp/config.php). - Select the
aprecycledatabase. - Click Import.
- Choose the SQL file located in this project at:
database/aprecycle.sql
- Click Go.
The system is pre-configured for standard WAMP settings. You can verify this in php/config.php:
- Host:
localhost - User:
root - Password: (empty)
The Bin Camera requires a valid API Key to function.
- Navigate to the project root:
C:\wamp64\www\APRecycle\ - Create a new file named
.env. - Open the file and add your Gemini API Key in the following format:
(See
GEMINI_API_KEY=your_actual_api_key_hereSETUP_GUIDE.mdor.env.examplefor more details).
Master Password for ALL Accounts: password123
- Username:
admin1 - Username:
admin2
- Username:
moderator1 - Username:
moderator2
- Username:
sarah_green(Recommended for testing) - Username:
emma_legend
- Open your browser (Chrome recommended).
- Home Page:
http://localhost/APRecycle/ - Bin Camera Test:
http://localhost/APRecycle/bin_camera/bin_camera.php
- Database Error: Ensure the database name in phpMyAdmin is exactly
aprecycle. - Camera Not Working: Ensure you are accessing the site via
localhost(not an IP address) and have allowed browser camera permissions. - API Error: Check that the
.envfile is in the root directory and contains a valid key without extra spaces.