How fawadsaqlain/nodejsserver works
Project type and purpose
• This is a Node.js–based backend API server (no frontend folder present).
• It exposes REST endpoints for authentication, student management, task handling, and report generation.
• It uses Supabase as its primary datastore (via a supabaseClient module).
File structure
• Top level:
• server/.env – environment variables
• server/package.json & package-lock.json – dependencies and scripts
• server/backend/src – all application code
• Under src, you have the usual Express MVC patterns broken into:
• config/ – configuration and Supabase client initialization
• routes/ – route definitions mapping URL paths to controllers
• controllers/ – HTTP-level handlers (calling services)
• services/ – business logic (interact with DB via supabaseClient)
• middlewares/ – Express middleware (authentication checks, file uploads, error handling)
• utils/ – helper modules (fileParser, printUsers)
• server.js & app.js – app/server bootstrap
README for additional insights
• Very minimal (“server in nodejs”), so no extra architectural notes. Everything must be inferred from file structure.