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