- Start XAMPP and launch MySQL
- Open phpMyAdmin (http://localhost/phpmyadmin)
- Create a new database named
student_learning_platform - Import the schema:
- Go to SQL tab
- Copy contents from
database/schema.sql - Click "Go"
- Import seed data:
- Go to SQL tab
- Copy contents from
database/seed_data.sql - Click "Go"
- Verify PHP is running (XAMPP Apache must be started)
- Check database connection in
backend/config/database.php - Verify folders exist:
backend/uploads/backend/reports/backend/logs/
- Open terminal in
frontendfolder - Run:
npm install - Run:
npm start - Browser should open automatically to http://localhost:3000
Use one of the demo accounts:
Student Account:
- Username: sangwabgy
- Password: Admin@123!
Teacher Account:
- Username: Teacher1
- Password: Admin@123!
Admin Account:
- Username: admin
- Password: Admin@123!
- MySQL is running
- Apache is running
- Database exists and has data
- Backend folders are created
- Frontend npm packages installed
- Can access http://localhost:3000
- Can login with demo account
- Check MySQL is running in XAMPP
- Verify database name in
backend/config/database.php - Ensure database was created successfully
- Check Apache is running
- Verify API endpoint URL in
frontend/src/context/AuthContext.js - Ensure it points to:
http://localhost/aiprs/backend/api
- Delete
node_modulesfolder - Delete
package-lock.json - Run
npm installagain - Run
npm start
- Check Network tab in browser DevTools
- Verify API call is reaching
http://localhost/aiprs/backend/api/auth.php - Check PHP error logs in XAMPP
- Explore the student dashboard
- Browse available courses
- Check recommendations
- Try taking a quiz
- Submit an assignment
- View analytics
- Frontend: http://localhost:3000
- Backend API: http://localhost/aiprs/backend/api
- phpMyAdmin: http://localhost/phpmyadmin
- XAMPP Control: Launch XAMPP control panel
- Keep XAMPP control panel open to monitor services
- Check browser console for any errors
- Use browser DevTools Network tab to debug API calls
- Check PHP error logs in
backend/logs/folder - Test with different user roles to see all features
- Check README.md for detailed documentation
- Review error logs in browser and backend
- Ensure all prerequisites are installed
- Verify file permissions on uploads/logs folders
Happy learning! 🎓