Skip to content

Full-stack hostel management system with secure role-based authentication for students, wardens, and admins. For testing purposes, I populated the placeholders with real passwords.

Notifications You must be signed in to change notification settings

NidhiDodiya1014/AshrayOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AshrayOS - Hostel Management System

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.


πŸš€ Key Features

πŸ” Secure Authentication System

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.

AshrayOS Main Dashboard

Authentication Features:

  • Role-based login (Student/Warden/Admin)
  • Secure session management
  • Password encryption
  • Automatic logout for security

πŸ‘‘ Admin Portal

To login as an Admin you may take the UserID=202303009 and Password=mypassword

πŸ›‘οΈ Warden Management

Login Interface Student Dashboard Student Profile View Room Change Request System

Comprehensive warden administration:

  • Add new wardens to the system
  • View complete warden directory
  • Remove wardens when necessary
  • Assign warden responsibilities and permissions

πŸ“ˆ Student Records Management

Advanced student data management:

  • Access complete student database
  • Export student records for reporting
  • Monitor system-wide student activity
  • Generate comprehensive analytics

πŸ›‘οΈ Warden Portal

Leave Request Interface Complaint Filing System

The warden portal offers comprehensive oversight tools for managing student requests and hostel operations efficiently

πŸ“Š Request Management Dashboard

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

πŸ‘¨β€πŸŽ“ Student Directory

Complete student information access:

  • View detailed student profiles
  • Access room allocation information
  • Monitor student activity and requests
  • Generate student reports

πŸŽ“ Student Portal

Guest Entry Request Laundry Booking Interface Warden Dashboard Warden Request Management Student Directory Admin Dashboard Warden Management Interface Student Records System

The student portal provides a comprehensive dashboard with intuitive navigation and quick access to all essential hostel services.

πŸ“‹ Personal Information Management

  • 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

🏠 Room Change Requests

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

🎫 Leave Request Management

Streamlined leave application process:

  • Submit leave requests with dates and reasons
  • Monitor approval status
  • View leave history and remaining quota

πŸ“ Complaint Management System

Comprehensive complaint handling with categorized issue reporting:

  • File complaints by category (Maintenance, Food, Cleanliness, etc.)
  • Track complaint resolution progress

πŸ‘₯ Guest Visit Management

Efficient guest entry request system:

  • Register guest visits in advance
  • Provide visitor details and purpose
  • Track approval status
  • Generate visitor passes upon approval

🧺 Smart Laundry Booking System

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

πŸ§‘β€πŸ’» Technology Stack

  • Backend: Node.js, Express.js
  • Frontend: React.js, Vite, React Router DOM
  • Database: MySQL
  • Styling: CSS with responsive and accessible UI design

πŸ“ Project Structure

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

βš™οΈ Getting Started

Prerequisites

  • Node.js (v18.x or later)
  • npm (v8.x or later)
  • MySQL Server (v8.0 or later)

πŸ”§ Backend Setup

  1. Clone the repository:

    git clone https://github.com/nidhidodiya1014/AshrayOS.git
    cd AshrayOS/Server
  2. Install dependencies:

    npm install
  3. Configure Environment Variables: Create a .env file 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
  4. Database Setup:

    • Create MySQL database: CREATE DATABASE ashrayos_db;
    • Import the provided SQL schema file
    • Ensure all tables are created successfully
  5. Start the server:

    npm start

    Server runs on http://localhost:5000

πŸ–₯️ Frontend Setup

  1. Navigate to client directory:

    cd ../client
  2. Install dependencies:

    npm install
  3. Configure environment: Create .env file in client directory:

    VITE_API_BASE_URL=http://localhost:5000
  4. Start development server:

    npm run dev

    Application opens at http://localhost:5173


🎯 Key System Benefits

For Students

  • 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

For 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

For Administrators

  • 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

πŸ”’ Security & Privacy

  • Role-based Access: Strict permission controls for different user types

🀝 Contributing

We welcome contributions from the community! Here's how you can help:

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and test thoroughly
  4. Commit your changes: git commit -m 'Add amazing feature'
  5. Push to the branch: git push origin feature/amazing-feature
  6. Submit a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for complete details.


✨ Acknowledgments

Developed with ❀️ by Nidhi Dodiya


πŸ”— Links & Resources


Last Updated: June 26, 2025

⭐ If you find AshrayOS helpful, please consider giving it a star on GitHub!


About

Full-stack hostel management system with secure role-based authentication for students, wardens, and admins. For testing purposes, I populated the placeholders with real passwords.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published