-
Notifications
You must be signed in to change notification settings - Fork 59
MIgrated authentication from Cognito to MongoDB #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
FE Refactoring
git ignore in main folder
Merge pull request AOSSIE-Org#1 from AOSSIE-Org/main
Refactored backend
Project Setup Documentation
…-Hide-Password-Functionality-46 password hide-visible feature added ( issue AOSSIE-Org#46 )
…DebateAI - Added seamless post-sign-in user flow with navigation logic in React - Implemented profile UI and /user backend routes with edit functionality - Built leaderboard UI and /leaderboard API, sorting users by EloRating - Created user and debate schemas in MongoDB with Go integration - Seeded test data; updated config, auth, and dependencies for full stack support
…d AI-driven judgment.
…es and AI judgment using WebSocket and WebRTC
…is, and voting for live debates
…nput (1-5) and on-page feedback display
…tice, enabling dynamic skill improvement.
Caution Review failedFailed to post review comments. WalkthroughThis update introduces a comprehensive real-time online debate platform with structured debate phases, AI-powered judgment, and robust user management. Major changes include new backend services for debate rooms, user authentication, Elo-based leaderboards, and AI coaching, as well as frontend components for debate rooms, coaching, tournaments, and user profiles. WebSocket and WebRTC are used for real-time debate interactions. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Frontend
participant Backend
participant MongoDB
participant GeminiAI
User->>Frontend: Login/Signup
Frontend->>Backend: POST /signup or /login
Backend->>MongoDB: Create/verify user, hash password
Backend-->>Frontend: JWT token
User->>Frontend: Start Debate (Online or Bot)
Frontend->>Backend: Create Room or Debate (via API)
Backend->>MongoDB: Create debate/room document
Backend-->>Frontend: Room/Debate ID
User->>Frontend: Join Debate Room
Frontend->>Backend: WebSocket connect (room ID)
Backend->>Frontend: Real-time signaling (WebSocket)
User->>Frontend: Send/receive media & messages (WebRTC/WebSocket)
User->>Frontend: Submit argument/transcript
Frontend->>Backend: POST /submit-transcripts or /debatevsbot
Backend->>GeminiAI: Evaluate/judge arguments
GeminiAI-->>Backend: Judgment/feedback
Backend->>MongoDB: Store results
Backend-->>Frontend: Judgment/feedback
User->>Frontend: View Leaderboard/Profile
Frontend->>Backend: GET /leaderboard or /profile
Backend->>MongoDB: Fetch user/debate stats
Backend-->>Frontend: Stats, history, Elo, etc.
Possibly related issues
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
I have migrated the authentication to use only MongoDB so that it becomes easier for future developers
Summary by CodeRabbit
New Features
Bug Fixes
Chores
Documentation