How j0hn3mmanuel666-code/smartcivi works
smartCivi is a civil-record request and appointment web application with user accounts and administrative workflows. A visitor submits a record request, then can review its status, access payment and receipt features, and manage appointments; staff administer requests, users, records, and reports. Express routes dispatch to controllers, which use Sequelize models for persistent data and render Xian templates. The README is empty, so broader capabilities are inferred from route names and view files; unsampled implementations are represented at their enclosing paths, and links are limited to documented or excerpted relationships.
Main entry points: homeController.js Service and admin workflows · db.js MySQL connection · routes/index.js HTTP routes · index.js Express server
Components 17
Web entry and routing
- Express server
index.js - HTTP routes
routes/index.js - Xian views
views
Accounts and access
- Authentication
controllers/authController.js - Admin access guard
middleware/auth.js
Civic services
- Service and admin workflows
controllers/homeController.js - Request and appointment pages
views - Administration and reports
views - Payments and receipts
views - Records and documents
views
Persistence
- Account model
models/userModel.js - Civil request model
models/Request.js - User model
models/User.js - Appointment model
models/Appointment.js - Attachment model
models/Attachment.js - MySQL connection
models/db.js
Other components
- Visitor / staff
Connections 19
- Visitor / staff → Express server: sends requests
index.js - Express server → HTTP routes: mounts routes
index.js - HTTP routes → Authentication: dispatches auth
routes/index.js - HTTP routes → Service and admin workflows: dispatches services
routes/index.js - HTTP routes → Admin access guard: guards admin
routes/index.js - Authentication → Account model: queries accounts
controllers/authController.js - Service and admin workflows → Civil request model: reads and updates
controllers/homeController.js - Service and admin workflows → User model: queries users
controllers/homeController.js - Express server → Xian views: renders templates
index.js - Authentication → Xian views: renders auth pages
controllers/authController.js - Service and admin workflows → Request and appointment pages: renders service pages
- Service and admin workflows → Administration and reports: renders admin pages
- Service and admin workflows → Payments and receipts: renders payment pages
- Service and admin workflows → Records and documents: renders record pages
- Account model → MySQL connection: uses connection
models/userModel.js - Civil request model → MySQL connection: uses connection
models/Request.js - User model → MySQL connection: uses connection
models/User.js - Appointment model → MySQL connection: uses connection
models/Appointment.js - Attachment model → MySQL connection: uses connection
models/Attachment.js