AshrayOS is a robust, full-stack hostel management system built to simplify and automate day-to-day hostel operations for administrators, wardens, and students. Featuring secure authentication and role-based portals, AshrayOS enables seamless management of room allocations, complaints, guest requests, and laundry services in a user-friendly interface.
- Deployed App: AshrayOS
The system provides secure login functionality for all user types with role-based access control. Users can authenticate as Students, Wardens, or Administrators, each with tailored access permissions and interface customizations.
Authentication Features:
- Role-based login (Student/Warden/Admin)
- Secure session management
- Password encryption
- Automatic logout for security
To login as an Admin you may take the UserID=202303009 and Password=mypassword
Comprehensive warden administration:
- Add new wardens to the system
- View complete warden directory
- Remove wardens when necessary
- Assign warden responsibilities and permissions
Advanced student data management:
- Access complete student database
- Export student records for reporting
- Monitor system-wide student activity
- Generate comprehensive analytics
The warden portal offers comprehensive oversight tools for managing student requests and hostel operations efficiently
Centralized request handling system:
- Room Change Requests: Review and approve/reject room changes
- Leave Applications: Process student leave requests
- Complaint Resolution: Address and resolve student complaints
- Guest Entry Approval: Manage visitor access requests
Complete student information access:
- View detailed student profiles
- Access room allocation information
- Monitor student activity and requests
- Generate student reports
The student portal provides a comprehensive dashboard with intuitive navigation and quick access to all essential hostel services.
- View Profile: Access complete personal and room information
- Room Details: Current room assignment and roommate information
- Contact Information: Update personal contact details
- Academic Information: View enrolled course and semester details
Students can easily request room changes through an intuitive interface:
- Submit new room change requests with reasons
- Track application status in real-time
- View request history and outcomes
- Receive status updates
Streamlined leave application process:
- Submit leave requests with dates and reasons
- Monitor approval status
- View leave history and remaining quota
Comprehensive complaint handling with categorized issue reporting:
- File complaints by category (Maintenance, Food, Cleanliness, etc.)
- Track complaint resolution progress
Efficient guest entry request system:
- Register guest visits in advance
- Provide visitor details and purpose
- Track approval status
- Generate visitor passes upon approval
Advanced laundry management with real-time availability:
- Real-time Slot Availability: View available washing machine slots
- Time-bound Bookings: Auto-expiring sessions prevent slot hogging
- Live Countdown: Track remaining time for current bookings
- Flexible Unbooking: Cancel bookings when plans change
- Usage History: Track personal laundry usage patterns
- Backend: Node.js, Express.js
- Frontend: React.js, Vite, React Router DOM
- Database: MySQL
- Styling: CSS with responsive and accessible UI design
AshrayOS/
βββ Server/ # Node.js backend with API and database connection
β βββ Routes/ # Organized API routes by feature
β β βββ auth.js # Authentication routes
β β βββ student.js # Student-specific routes
β β βββ warden.js # Warden-specific routes
β β βββ admin.js # Admin-specific routes
β βββ db.js # MySQL configuration and connection logic
β βββ index.js # Entry point for the Express server
β
βββ client/ # React frontend
βββ src/
β βββ Components/ # Reusable components grouped by user role
β β βββ Student/ # Student portal components
β β βββ Warden/ # Warden portal components
β β βββ Admin/ # Admin portal components
β βββ Pages/ # Page components (Login, Dashboard, etc.)
β βββ App.jsx # Main routing logic
β βββ main.jsx # React app entry point
βββ public/ # Static assets
βββ .env # Environment configuration
- Node.js (v18.x or later)
- npm (v8.x or later)
- MySQL Server (v8.0 or later)
-
Clone the repository:
git clone https://github.com/nidhidodiya1014/AshrayOS.git cd AshrayOS/Server -
Install dependencies:
npm install
-
Configure Environment Variables: Create a
.envfile in the Server directory:HOST=localhost USER=your_mysql_user PASSWORD=your_mysql_password NAME=ashrayos_db PORT=3306 JWT_SECRET=your_jwt_secret_key
-
Database Setup:
- Create MySQL database:
CREATE DATABASE ashrayos_db; - Import the provided SQL schema file
- Ensure all tables are created successfully
- Create MySQL database:
-
Start the server:
npm start
Server runs on
http://localhost:5000
-
Navigate to client directory:
cd ../client -
Install dependencies:
npm install
-
Configure environment: Create
.envfile in client directory:VITE_API_BASE_URL=http://localhost:5000
-
Start development server:
npm run dev
Application opens at
http://localhost:5173
- 24/7 Access: Submit requests anytime, anywhere
- Real-time Tracking: Monitor request status instantly
- Digital Records: Maintain complete history of all activities
- Efficient Communication: Direct communication with wardens
- Centralized Management: Handle all requests from one dashboard
- Quick Processing: Streamlined approval workflows
- Student Oversight: Complete visibility into student activities
- Report Generation: Generate detailed reports for administration
- System Overview: Bird's-eye view of entire hostel operations
- User Management: Complete control over system users
- Analytics: Comprehensive reporting and analytics
- Scalability: Easy to scale across multiple hostels
- Role-based Access: Strict permission controls for different user types
We welcome contributions from the community! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and test thoroughly
- Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Submit a Pull Request
This project is licensed under the MIT License - see the LICENSE file for complete details.
Developed with β€οΈ by Nidhi Dodiya
- GitHub Repository: AshrayOS
Last Updated: June 26, 2025
β If you find AshrayOS helpful, please consider giving it a star on GitHub!














