The Hostel Management System is a full-stack web application designed to simplify and automate hostel operations such as student management, room allocation, and complaint handling. The system is built using React with TypeScript for the frontend and Node.js with Express for the backend, with PostgreSQL (Neon) as the database and Prisma ORM for database management.
- React
- TypeScript
- CSS / Tailwind CSS (if applicable)
- Node.js
- Express.js
- Prisma ORM
- PostgreSQL (Neon)
- Prisma Studio
- VS Code
- Git & GitHub
app/
│
├── frontend/
│ ├── src/
│ ├── components/
│ ├── pages/
│ └── services/
│
├── backend/
│ ├── src/
│ │ ├── routes/
│ │ ├── controllers/
│ │ ├── middlewares/
│ │ └── utils/
│ ├── prisma/
│ │ ├── schema.prisma
│ │ └── migrations/
│ ├── config/
│ └── server.ts
│
└── README.md
- Manage students and hostel staff
- Room allocation and availability tracking
- View and manage hostel records
- Handle complaints and requests
- Login and profile management
- View room and hostel details
- Submit complaints or maintenance requests
git clone https://github.com/your-username/hostel-management-system.git
cd appcd backend
npm installCreate a .env file:
DATABASE_URL="postgresql://username:password@neon-db-url/dbname"Run Prisma migrations:
npx prisma migrate devStart the backend server:
npm run devcd ../frontend
npm install
npm run dev- Prisma is used as the ORM
- Neon provides serverless PostgreSQL
- Prisma schema is located in:
backend/prisma/schema.prisma
Open Prisma Studio:
npx prisma studio- Environment variables for sensitive data
- Role-based access control
- Secure API endpoints
- Online fee payment system
- Email / notification integration
- Attendance tracking
- Mobile-friendly UI
- Fork the repository
- Create a new branch
- Commit your changes
- Open a pull request
- I need frontend
This project is licensed under the MIT License.
GitHub: 05tanish