A comprehensive system for managing hostel operations including student registrations, room assignments, fee collection, and reporting.
- Student Management: Register students, assign rooms, track personal details
- Room Management: Track room availability, occupancy, and maintenance status
- Fee Management: Collect and track hostel fees, generate payment receipts
- Advanced Dashboards: Visual representations of room occupancy and fee status
- Reporting: Generate reports on occupancy, fee collection, and student status
- Added missing columns (student_id_number, expected_checkout_date)
- Improved database schema for better relationships and constraints
- Modular architecture with separate directories for:
- models: Database operations and data models
- routes: Controller logic and route handlers
- utils: Utility functions and helpers
- templates: View templates organized by feature
- static: CSS, JavaScript, and other static assets
- Dashboard: Interactive charts, metric cards, recent activity feed
- Student Management: Card view for students with profile photos
- Room Visualization: Interactive grid/list views with occupancy indicators
- Fee Management: Calendar view, batch processing, payment reminders
- Enhanced Student Profiles: Detailed student information with history tracking
- Advanced Fee Management: Calendar view, batch payments, reminders system
- Improved Search & Filtering: Real-time filtering across all modules
- Reporting System: Print functionality, data export options
hostel_management_v2/
├── app.py # Main application file (legacy)
├── app_new.py # New modular application entrypoint
├── run.py # Script to run the application
├── models/ # Database models
│ └── db.py # Database operations
├── routes/ # Route handlers
│ ├── dashboard.py # Dashboard routes
│ ├── students.py # Student management routes
│ ├── rooms.py # Room management routes
│ └── fees.py # Fee management routes
├── utils/ # Utility functions
│ ├── date_utils.py # Date handling utilities
│ ├── file_handlers.py # File upload handlers
│ ├── general.py # General utilities
│ └── validators.py # Input validation
├── static/ # Static assets
│ ├── css/ # CSS files
│ └── js/ # JavaScript files
└── templates/ # HTML templates
├── errors/ # Error pages
├── students/ # Student templates
├── rooms/ # Room templates
├── fees/ # Fee templates
└── reports/ # Report templates
- Python 3.7+
- SQLite3
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Run the application:
python run.py
The new modular architecture can be used by running:
python run.py --debug
The legacy version can still be run with:
python app.py
If you're upgrading from an earlier version:
- Back up your database:
python run.py --backup-db
- Run the upgrade script:
python upgrade_db.py
- For detailed instructions, see the Migration Guide.
Run the system test script to verify all components:
python system_test.py
This will check:
- Database connections and schema
- Model classes functionality
- Route modules registration
- Template and static file presence
GET /students/- List all studentsPOST /students/add- Add a new studentGET /students/<id>- View student detailsPOST /students/edit/<id>- Update student informationPOST /students/delete/<id>- Delete a student
GET /rooms/- List all roomsPOST /rooms/add- Add a new roomGET /rooms/<id>- View room detailsPOST /rooms/edit/<id>- Update room informationPOST /rooms/delete/<id>- Delete a room
GET /fees/- List all feesPOST /fees/add- Add a new feeGET /fees/calendar- View fee calendarPOST /fees/batch- Process batch paymentsPOST /fees/edit/<id>- Update fee informationPOST /fees/delete/<id>- Delete a fee
- Mobile-responsive design for all pages
- Full-text search for students and records
- Advanced security features (user roles, permissions)
- API endpoints for integration with other systems
- Email notifications for fee reminders