{"id":31028213,"url":"https://github.com/classyid/lab-management-system","last_synced_at":"2026-02-13T23:05:38.308Z","repository":{"id":314105033,"uuid":"1054183841","full_name":"classyid/lab-management-system","owner":"classyid","description":"A comprehensive web-based laboratory management system for universities. Features real-time booking, WhatsApp notifications, equipment tracking, and admin dashboard. Built with Flask \u0026 PostgreSQL.","archived":false,"fork":false,"pushed_at":"2025-09-10T13:46:24.000Z","size":298,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-10T17:49:31.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/classyid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-10T13:34:54.000Z","updated_at":"2025-09-10T13:46:28.000Z","dependencies_parsed_at":"2025-09-10T17:49:33.876Z","dependency_job_id":"6ef83daa-4beb-4164-8a16-d963384cc279","html_url":"https://github.com/classyid/lab-management-system","commit_stats":null,"previous_names":["classyid/lab-management-system"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/classyid/lab-management-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classyid%2Flab-management-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classyid%2Flab-management-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classyid%2Flab-management-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classyid%2Flab-management-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/classyid","download_url":"https://codeload.github.com/classyid/lab-management-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/classyid%2Flab-management-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29422357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T22:20:51.549Z","status":"ssl_error","status_checked_at":"2026-02-13T22:20:49.838Z","response_time":78,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-13T20:06:37.039Z","updated_at":"2026-02-13T23:05:38.302Z","avatar_url":"https://github.com/classyid.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lab Management System\n\nA comprehensive web-based laboratory management system designed for universities and academic institutions. This system streamlines laboratory booking, equipment management, and user coordination with real-time notifications and analytics.\n\n## Features\n\n### Core Functionality\n- **Real-time Lab Booking** - Online reservation system with conflict detection\n- **Multi-role Support** - Different interfaces for Students, Faculty, and Administrators\n- **Equipment Management** - Track and manage laboratory equipment inventory\n- **WhatsApp Integration** - Automated notifications for bookings and approvals\n- **Dashboard Analytics** - Comprehensive reporting and usage statistics\n\n### User Roles\n- **Students**: Book labs, view availability, manage personal bookings\n- **Faculty**: All student features plus priority booking and extended access\n- **Administrators**: Full system management, approval workflows, user management\n\n### Technical Features\n- Responsive web design for all devices\n- CSRF protection and security measures\n- Rate limiting to prevent abuse\n- Database backup and recovery\n- Load tested for reliability\n\n## Tech Stack\n\n- **Backend**: Python Flask\n- **Database**: PostgreSQL\n- **Frontend**: HTML5, CSS3, JavaScript, Tailwind CSS\n- **Integration**: WhatsApp Business API\n- **Testing**: K6 for load testing\n- **Deployment**: Linux (Ubuntu/CentOS)\n\n## Installation\n\n### Prerequisites\n- Python 3.8+\n- PostgreSQL 12+\n- Node.js (for development tools)\n- WhatsApp Business API access (optional)\n\n### Quick Start\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/classyid/lab-management-system.git\n   cd lab-management-system\n   ```\n\n2. **Set up virtual environment**\n   ```bash\n   python3 -m venv lab\n   source lab/bin/activate  # On Windows: lab\\Scripts\\activate\n   ```\n\n3. **Install dependencies**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Configure database**\n   ```bash\n   # Create PostgreSQL database\n   createdb lab_management\n   \n   # Update config.py with your database credentials\n   cp config.py.example config.py\n   ```\n\n5. **Initialize database**\n   ```bash\n   python3 run.py --init-db\n   ```\n\n6. **Run the application**\n   ```bash\n   python3 run.py\n   ```\n\n7. **Access the application**\n   - Open browser and go to `http://localhost:5000`\n   - Default admin credentials: `admin` / `admin123`\n\n## Configuration\n\n### Database Setup\nUpdate `config.py` with your PostgreSQL credentials:\n```python\nDB_HOST = 'your_db_host'\nDB_PORT = '5432'\nDB_NAME = 'lab_management'\nDB_USER = 'your_db_user'\nDB_PASSWORD = 'your_db_password'\n```\n\n### WhatsApp Integration\nConfigure WhatsApp API in the admin panel:\n1. Login as admin\n2. Go to Admin → WhatsApp Configuration\n3. Set API URL and enable notifications\n4. Test connection\n\n## Usage\n\n### For Students\n1. Register/login with your credentials\n2. Browse available laboratories\n3. Select lab and time slot\n4. Submit booking request\n5. Receive WhatsApp confirmation\n\n### For Administrators\n1. Login with admin credentials\n2. Manage laboratories and equipment\n3. Approve/reject booking requests\n4. Monitor system usage and analytics\n5. Configure system settings\n\n## API Documentation\n\n### Booking API\n```\nPOST /api/submit_booking\nContent-Type: application/json\n\n{\n  \"lab_id\": 1,\n  \"start_time\": \"2025-09-10T09:00\",\n  \"end_time\": \"2025-09-10T11:00\",\n  \"purpose\": \"Programming Lab Session\",\n  \"participants\": 25,\n  \"priority\": \"normal\"\n}\n```\n\n### Status Check\n```\nGET /api/check_availability?lab_id=1\u0026start_time=...\u0026end_time=...\n```\n\n## Testing\n\n### Run Unit Tests\n```bash\npython -m pytest tests/\n```\n\n### Load Testing\n```bash\n# Install K6\ncurl https://github.com/grafana/k6/releases/download/v0.47.0/k6-v0.47.0-linux-amd64.tar.gz -L | tar xvz\n\n# Run load test\n./k6 run tests/load_test.js\n```\n![K6](screenshots/k6.png)\n\n## Deployment\n\n### Production Setup\n1. **Server Requirements**\n   - 2+ CPU cores\n   - 4GB+ RAM\n   - 100GB+ storage\n   - Linux OS (Ubuntu 20.04+ recommended)\n\n2. **Deploy with Docker** (recommended)\n   ```bash\n   docker-compose up -d\n   ```\n\n3. **Manual Deployment**\n   ```bash\n   # Install production dependencies\n   pip install gunicorn psycopg2-binary\n   \n   # Run with Gunicorn\n   gunicorn -w 4 -b 0.0.0.0:5000 app:app\n   ```\n\n### Environment Variables\n```bash\nexport FLASK_ENV=production\nexport SECRET_KEY=your-secret-key\nexport DB_PASSWORD=your-db-password\nexport WHATSAPP_API_URL=your-whatsapp-api\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n### Development Guidelines\n- Follow PEP 8 style guide\n- Write tests for new features\n- Update documentation\n- Ensure code passes all tests\n\n## Security\n\n- Regular security updates\n- Input validation and sanitization\n- CSRF protection enabled\n- Rate limiting implemented\n- SQL injection prevention\n- Session management security\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n- **Email**: kontak@classy.id\n\n\n## Screenshots\n\n![Dashboard](screenshots/dashboard.png)\n![Booking Form](screenshots/booking.png)\n\n## Acknowledgments\n\n- Flask community for the excellent framework\n- PostgreSQL team for robust database solution\n- Contributors and testers\n- Open source libraries used in this project\n\n---\n\n**Made with ❤️ for academic institutions**\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclassyid%2Flab-management-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclassyid%2Flab-management-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclassyid%2Flab-management-system/lists"}