FLAS Room Booking
Production room-reservation system for Kasetsart University staff. Supports university Google sign-in, fixed time-block bookings, and physical key handoff verified through 6-digit booking codes.
Overview
FLAS Room Booking is a production reservation system for the Creative Space and shared working rooms at the Faculty of Liberal Arts and Sciences, Kasetsart University. It gives university staff and students a single place to check room availability, reserve fixed time slots, and verify physical key handoffs.
Challenge
Managing shared faculty rooms manually led to scheduling conflicts, unclear occupancy status, and friction during physical key pickup. Access also needed to be restricted strictly to verified Kasetsart University members (@ku.th) with clear separation between standard users and room administrators.
Solution & Architecture
The application enforces institutional access control alongside predictable time-slot booking and verification:
- University Google OAuth (
@ku.th): Authentication runs through Supabase OAuth restricted to@ku.thdomain accounts, paired with server-side route-group guards (requireUser,requireAdmin) and account suspension handling (/blocked). - Fixed Time-Block Reservations: Interactive room-time grids prevent overlapping bookings and keep daily schedules clear across multiple shared spaces.
- 6-Digit Booking Codes & Email Alerts: Confirmations, OTP/verification codes, and cancellation notices are dispatched via SMTP (Nodemailer), enabling staff to verify physical key handoff using a 6-digit booking code.
- Type-Safe Schema & Automated Tests: Built with Drizzle ORM migrations over PostgreSQL, Upstash Redis support, and a dual Vitest suite covering both server logic (
node) and interactive booking components (jsdom).
Technical Stack
- Frontend & Framework: Next.js 16 (App Router), React 19, TypeScript, Tailwind CSS
- Auth & Database: Supabase Auth (
@supabase/ssr), PostgreSQL, Drizzle ORM, Upstash Redis - Email & Testing: Nodemailer (SMTP), Vitest, Testing Library