How shashipandey100192/final_backend works
This is an Express backend for student admissions and user records. The main workflow starts at the HTTP server, dispatches through the router, optionally checks JWT cookies, performs student or user model operations, and returns JSON. The router also handles registration, login, record lookup, and student listing; helper controllers implement student read, update, and delete. Source excerpts show these relationships, but the README is empty and the database connection module is imported without an evident invocation in the router.
Main entry points: aapcommon.js API router · studentAdmission.js Student records · server.js Express server · apicontrols.js Student CRUD
Components 12
HTTP entry
- Express server
server.js
API and access
- API router
approuting/common/aapcommon.js - JWT verification
middle/middleware.js
Record operations
- Student registration
approuting/common/aapcommon.js - Student login
approuting/common/aapcommon.js - Student listing
approuting/common/aapcommon.js - Student CRUD
controls/apicontrols.js - Account lookup
approuting/common/aapcommon.js
Data models
- Student records
models/studentAdmission.js - User records
models/userModel.js - MongoDB connection
appconnection/dbconnection.js
Other components
- API client
Connections 15
- API client → Express server: sends requests
server.js - Express server → API router: mounts routes
server.js - API router → JWT verification: guards routes
approuting/common/aapcommon.js - API router → Student registration: dispatches
approuting/common/aapcommon.js - API router → Student login: dispatches
approuting/common/aapcommon.js - API router → Student listing: dispatches
approuting/common/aapcommon.js - API router → Student CRUD: dispatches
approuting/common/aapcommon.js - API router → Account lookup: dispatches
approuting/common/aapcommon.js - Student registration → Student records: reads and writes
approuting/common/aapcommon.js - Student login → Student records: reads
approuting/common/aapcommon.js - Student listing → Student records: reads
approuting/common/aapcommon.js - Student CRUD → Student records: reads and writes
controls/apicontrols.js - Account lookup → Student records: reads
approuting/common/aapcommon.js - API router → User records: reads and writes
approuting/common/aapcommon.js - API router → MongoDB connection: imports
approuting/common/aapcommon.js