Guides¶
In-depth guides for using and extending EduSync.
User Roles¶
| Role | Capabilities |
|---|---|
| Student | Browse marketplace, buy products, rent items, chat, report issues |
| Vendor | Sell products, manage inventory, process orders |
| Admin | Full system access, user management, content moderation |
Quick Links¶
Troubleshooting¶
Common Issues¶
Port Already in Use¶
Or use the provided script:
Database Connection Failed¶
- Verify
.envcredentials are correct - Check SSL mode is set to
require - Ensure Aiven database is accessible from your network
- Try connecting with psql to verify credentials
CORS Errors¶
- Ensure Gateway is running on port 8000
- Check that frontend is making requests to
/api/prefix - Verify CORS configuration in
gateway/server.js
Authentication Issues¶
- Check if JWT token exists in
localStorage(key:edusync_token) - Verify token hasn't expired (7-day expiry)
- Ensure
Authorization: Bearer <token>header is set
Service Health Checks¶
Verify services are running:
| Service | Health Check URL |
|---|---|
| Auth | http://localhost:3001/health |
| Marketplace | http://localhost:3002/ |
| RentHub | http://localhost:3003/health |
| NewsBox | http://localhost:3004/health |
| Notices | http://localhost:3005/notices |
| Chat | http://localhost:3006/health |
| Issue | http://localhost:3007/health |
| Gateway | http://localhost:8000/ |