How buzek69/stredoskolsky_internat works
This repository is a small Express backend for a school-dormitory database project. Its visible workflow is an HTTP request entering the Express app, being routed to the users controller, and the controller querying SQL Server and returning user records. The database connection is implemented separately; the tree also contains SQL schema, query, and seed files. No frontend implementation or broader product workflow is evident from the README and sampled source, so those capabilities are not inferred.
Main entry points: index.js Express app · userRoutes.js User routes · userController.js User controller · db.js SQL connection pool
Components 10
HTTP API
- Express app
backend/index.js - User routes
backend/routes/userRoutes.js - User controller
backend/controllers/userController.js
Database access
- SQL connection pool
backend/database/db.js - SQL Server
SQL resources
- Table definitions
backend/database/create_tables.sql - SQL queries
backend/database/queries.sql - Example seed data
backend/database/seeds/seed_example.sql - Static seed data
backend/database/seeds/seed_static_tables.sql
Other components
- API client
Connections 5
- API client → Express app: sends requests
- Express app → User routes: mounts routes
backend/index.js - User routes → User controller: dispatches to
backend/routes/userRoutes.js - User controller → SQL connection pool: queries through
backend/controllers/userController.js - SQL connection pool → SQL Server: connects to
backend/database/db.js