How zomarrd/pifinalbackend works
This is a small Express REST API for student records, supporting list, lookup, create, update, and delete operations. Requests enter through the versioned student routes, pass through controller and service layers, and reach SQLite persistence; responses and HTTP errors are handled by the controller. Startup mounts the routes, initializes and seeds the table, and starts listening. The README is empty, so capabilities and relationships are based on the sampled source; the external client link is unverified.
Main entry points: studentRoutes.js Student Routes · index.js Server Startup · studentController.js Student Controller · studentService.js Student Service
Components 7
HTTP API
- Server Startup
src/index.js - Student Routes
src/v1/routes/studentRoutes.js - Student Controller
src/controllers/studentController.js
Student Operations
- Student Service
src/services/studentService.js
SQLite Storage
- Student Queries
src/database/Student.js - SQLite Database
src/database/sqliteDB.js
Other components
- API Client
Connections 7
- API Client → Student Routes: sends requests
- Server Startup → Student Routes: mounts routes
src/index.js - Student Routes → Student Controller: dispatches requests
src/v1/routes/studentRoutes.js - Student Controller → Student Service: calls operations
src/controllers/studentController.js - Student Service → Student Queries: delegates operations
src/services/studentService.js - Student Queries → SQLite Database: queries data
src/database/Student.js - Server Startup → SQLite Database: creates and seeds table
src/index.js