User Management & RBAC
Authentication powered by better-auth, distinguishing between Students and Administrators with secure session management.
- Secure login and registration
- Role-specific views
- Session tracking
A centralized administrative platform designed to manage student dormitories. It features role-based access control, automated student room allocation, billing records, and tracking for shared expenses and utilities.
Full-stack development, authentication (Better Auth), database architecture (Neon Postgres), automated allocation logic, and responsive dashboard design.


Authentication powered by better-auth, distinguishing between Students and Administrators with secure session management.
Manages student profiles, emergency contacts, room assignments, and move-in dates.
Comprehensive financial tracking for dormitory fees, shared utility purchases (water), and other expenses.
System to track and assign daily/weekly chores like garbage disposal among residents.
The application uses the modern better-auth library for secure authentication, providing a robust session-based login system out of the box.
import { betterAuth } from "better-auth";
import { prismaAdapter } from "better-auth/adapters/prisma";
import prisma from "@/lib/prisma";
export const auth = betterAuth({
database: prismaAdapter(prisma, {
provider: "postgresql",
}),
emailAndPassword: {
enabled: true,
autoSignIn: false,
},
});
By utilizing @neondatabase/serverless alongside Prisma's driver adapters, the application achieves extremely fast database connections in a serverless environment, drastically reducing cold start latency.