Reference
- Database seeded using test-data-gules.vercel.app/data.json
- MongoDB Atlas Integration: Server initializes only after successful DB connection.
- Schemas:
- User β
name,email,password(with fields prepared forprogress,bookmarksβ frontend integration pending) - Question β
title,url - Category β
title,questions(array of Question references)
- User β
- Authentication:
- Register & Login with JWT-based authentication
- Passwords securely hashed using bcrypt
- Protected Routes: JWT middleware for user-only operations
- API Endpoints:
- Content (
/content)- Fetch categories & related questions
- Search questions by title β
?search=array - Pagination β
?page=2&limit=5
- Auth (
/auth)- Login β
/login - Register β
/register - Logout β
/logout
- Login β
- Content (
- Data Fetching: All content dynamically fetched from backend API
- Responsive Design: Works across desktop, tablet and mobile devices
- User Authentication:
- Login & Register pages with global state
- Protected routes prepared for authenticated users
- UI/UX Enhancements:
- Accordion-style categories & questions display
- Dark/Light mode toggle (saved in
localStorage)
- User Dashboard β Progress bar & bookmarks UI
- Progress Tracking & Bookmarks β API is ready but frontend not yet integrated