Pro Residance Applications
A role-based student residence application and administration platform for managing applicants, preferences, reviews and allocations.

Overview
Suburban Digs Residence Applications is a full-stack platform for student accommodation applications and administration. Students discover residences, maintain profiles, submit ordered residence preferences and track applications. Managers and administrators manage properties, application periods, reviews and residence allocations.
The problem
Residence applications involve time-sensitive cycles, supporting documents, preference ordering and decisions made by several roles. Manual processes can make application status and required actions unclear, while academic-year cycles should be configurable without software releases.
The solution
I built a centralised Next.js application with student, residence manager, admissions administrator and system administrator experiences. MongoDB stores application records and dynamic periods, Cloudflare R2 protects private student documents, Cloudinary serves public residence imagery, and Better Auth provides role-aware access.
My contributions
Designed and developed the App Router application, MongoDB models and Mongoose services. Implemented Better Auth roles, server-side ownership and authorisation checks, Zod validation, dynamic application periods, preference and application integrity rules, allocation workflows, signed private-document storage and application email communication.
Architecture & engineering
The system uses a server-oriented Next.js architecture. App Router pages and role-specific portals call authenticated route handlers and server actions. Feature services apply Zod validation, role and ownership checks, and Mongoose persistence before touching MongoDB. Better Auth manages sessions, with private R2 documents and public Cloudinary residence media kept in separate storage boundaries.
Challenges & decisions
Application periods had to support successive academic years, so they are stored as managed records rather than hard-coded dates. Database and server rules prevent duplicate applications, residence preferences and preference positions. Private student files use signed R2 operations, while public residence photography uses separate public delivery.
Outcomes & lessons
Delivered student, manager, admissions and system-administrator workflows with dynamic application periods, validated preferences, application reviews, residence allocations and separated private/public storage. A production deployment is available at the Suburban Digs application domain.
System flow
- 01Next.js App Router UI
- 02Better Auth session
- 03Role and ownership checks
- 04Zod validation
- 05Feature services
- 06Mongoose and MongoDB
- 07R2, Cloudinary and SMTP