School Information System

Featured
to Product
Next.js React Python FastAPI PostgreSQL Microsoft Azure Entra ID Nginx Git
Dashboard preview of the School Information System

Overview

School Information System (ŠIS) is a full-stack Progressive Web Application (PWA) built to replace a legacy, largely non-functional school portal. It unifies daily communication and scheduling tools for teachers into a single interface—combining school announcements, a shared task calendar, Bakaláři messages and timetables, Microsoft Outlook emails, and Microsoft Teams chats under one login.

Developed as a graduation project at Resslova Secondary School in a two-person team with Karolína Černá. The system is deployed on the school’s on-premise server and feeds live data to digital information boards across the campus.

My Role & Contributions

  • Backend & API Architecture: Designed and built the REST API in Python (FastAPI) handling authentication, data aggregation, and caching.
  • Third-Party Integrations: Implemented OAuth2 delegated access via Microsoft Graph API (Outlook, Teams, encrypted webhook subscriptions) and integrated the Bakaláři Mobile API.
  • Security & Infrastructure: Configured Nginx reverse proxy, automated Let’s Encrypt SSL renewal via PowerShell, and implemented dual-token JWT authentication.
  • Frontend Modules: Developed the Bakaláři Timetable, Bakaláři Messages, Teams, and User Profile modules.

Technologies

  • Next.js & React with Chakra UI (PWA, light/dark themes).
  • Python & FastAPI served via Uvicorn.
  • PostgreSQL for relational storage and audit triggers.
  • Microsoft Graph API, Entra ID, and Bakaláři Mobile API.
  • Nginx, Certify The Web, and PowerShell on Windows Server.

Core Modules

Desktop and mobile view of the Announcements and Timetable modules

Responsive interface adapting between desktop split-view and mobile bottom navigation.

  • Announcements & Info Boards: Tag-filtered school notices with attachments, per-user read tracking (unseen, seen, read), and an API endpoint feeding school hallway displays.
  • Shared Task Calendar: FullCalendar integration for single-day, multi-day, and timed school events.
  • Outlook & Teams: Categorized inbox management, replies, attachments, and real-time Teams chat/channel messaging.
  • Bakaláři Messages & Timetable: Incoming/sent/excuse messages plus weekly and odd/even permanent schedules with substitution highlights and duty editor mode.

Architecture & Security

API authorization and authentication flow

Authentication flow combining Bakaláři credential verification with internal JWT tokens.

  • Dual-Token JWT Auth: Short-lived access tokens (15 min) and refresh tokens (30 days) validated against hashed JTI records in PostgreSQL.
  • Encrypted Webhooks & Polling: Real-time notifications via decrypted Microsoft Graph change notifications, paired with a periodic background worker checking Bakaláři for timetable or message changes.
  • On-Premise Hosting: Hosted on school hardware behind an Nginx reverse proxy to keep institutional data within the school network.

Engineering Challenges

  • Fallback Timetable Caching: Because external Bakaláři servers can experience downtime, the periodic background worker caches timetable snapshots in PostgreSQL so teachers retain access during outages.
  • Webhook Payload Decryption: Microsoft Graph change notifications require hybrid encryption; implemented asymmetric RSA decryption of the symmetric key to inspect sender metadata and prevent self-notification loops.

Database

PostgreSQL stores user profiles, role-based permissions (reader, editor, super-admin), encrypted OAuth/API tokens, announcements, tasks, and automated audit logs triggered on table modifications.

Schema

Low-resolution database schema to provide a general idea.

Database ERD schema