How rupesh155/ai_project works
This repository implements an interview-management web app with email/password and Google sign-in, plus an authenticated interview-creation API. The visible workflow is browser login or signup → Express authentication routes → MongoDB-backed users; interview creation separately verifies a JWT, then stores interview parameters. The UI also exposes a Google-login component, though its implementation was not excerpted. The interview routes excerpt shows creation only; listing, detail, and deletion appear only in commented-out code, so they are not represented as active capabilities.
Main entry points: app.js Express app · App.jsx Login/signup switch · User.js User model · authRoutes.js Google auth handler
Components 16
React client
- React entry
react/my-react-app/src/main.jsx - Login/signup switch
react/my-react-app/src/App.jsx - Email login
react/my-react-app/src/Login.jsx - Account signup
react/my-react-app/src/Signup.jsx - Google login button
react/my-react-app/src/GoogleLoginButton.jsx
Authentication API
- Express app
server/app.js - Login handler
server/routes/loginRoutes.js - Signup handler
server/routes/signupRoutes.js - Google auth handler
server/routes/authRoutes.js - JWT middleware
server/authCheck/auth.js - User model
server/models/User.js
Interview API
- Interview creation
server/routes/interview.js - Interview model
server/models/Interview.js
Other components
- User
- Google identity service
- MongoDB
Connections 19
- User → React entry: uses
- React entry → Login/signup switch: renders
react/my-react-app/src/main.jsx - Login/signup switch → Email login: renders
react/my-react-app/src/App.jsx - Login/signup switch → Account signup: renders
react/my-react-app/src/App.jsx - Login/signup switch → Google login button: renders
react/my-react-app/src/App.jsx - Email login → Login handler: POSTs login
react/my-react-app/src/Login.jsx - Account signup → Signup handler: POSTs signup
react/my-react-app/src/Signup.jsx - Express app → Google auth handler: mounts
server/app.js - Express app → Login handler: mounts
server/app.js - Express app → Signup handler: mounts
server/app.js - Express app → Interview creation: mounts
server/app.js - Express app → MongoDB: connects
server/app.js - Login handler → User model: finds user
server/routes/loginRoutes.js - Signup handler → User model: creates user
server/routes/signupRoutes.js - Google auth handler → User model: finds or creates
server/routes/authRoutes.js - Google auth handler → Google identity service: verifies credential
server/routes/authRoutes.js - JWT middleware → User model: loads user
server/authCheck/auth.js - Interview creation → JWT middleware: uses middleware
server/routes/interview.js - Interview creation → Interview model: creates record
server/routes/interview.js