{"id":29117333,"url":"https://github.com/lprabodha/hotel-reservation","last_synced_at":"2025-06-29T11:38:04.437Z","repository":{"id":297808681,"uuid":"969588220","full_name":"Lprabodha/hotel-reservation","owner":"Lprabodha","description":"Hotel Reservation system","archived":false,"fork":false,"pushed_at":"2025-06-15T12:24:16.000Z","size":18860,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T13:45:21.490Z","etag":null,"topics":["hotel-management","hotel-reservation","laravel","php","role-based-access"],"latest_commit_sha":null,"homepage":"https://click2checkin.duckdns.org/","language":"CSS","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/Lprabodha.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}},"created_at":"2025-04-20T13:51:02.000Z","updated_at":"2025-06-13T18:57:42.000Z","dependencies_parsed_at":"2025-06-07T16:48:55.749Z","dependency_job_id":null,"html_url":"https://github.com/Lprabodha/hotel-reservation","commit_stats":null,"previous_names":["lprabodha/hotel-reservation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Lprabodha/hotel-reservation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lprabodha%2Fhotel-reservation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lprabodha%2Fhotel-reservation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lprabodha%2Fhotel-reservation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lprabodha%2Fhotel-reservation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lprabodha","download_url":"https://codeload.github.com/Lprabodha/hotel-reservation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lprabodha%2Fhotel-reservation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262588578,"owners_count":23333181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hotel-management","hotel-reservation","laravel","php","role-based-access"],"created_at":"2025-06-29T11:38:03.256Z","updated_at":"2025-06-29T11:38:04.425Z","avatar_url":"https://github.com/Lprabodha.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏨 Hotel Reservation System\n\n![Laravel](https://img.shields.io/badge/Laravel-10.x-red?style=flat-square\u0026logo=laravel)\n![Open Source](https://img.shields.io/badge/license-MIT-green)\n![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)\n\nA web-based hotel reservation platform built with **Laravel**. Supports multi-hotel management for customers, hotel managers, clerks, and travel companies to handle room bookings, check-ins, check-outs, billing, and reporting.\n\n---\n\n## 🚀 Features\n\n- **Multi-hotel support**: Manage multiple hotels, each with its own rooms and staff.\n- **Flexible Booking**: Customers \u0026 travel companies can book single or multiple rooms per reservation.\n- **Check-in / Check-out**: Intuitive flows for front desk operations.\n- **Billing \u0026 Payments**: Automatic billing, payment tracking, and no-show auto-billing.\n- **Reporting**: Daily reports and analytics.\n- **Role-based Access**: Super Admin, Hotel Manager, Clerk, Customer, Travel Company.\n- **Secure Authentication**: Robust login system using Spatie Laravel Permission.\n- **Responsive UI**: Built with [Bootstrap](https://getbootstrap.com/).\n- **CI/CD**: GitHub Actions for auto-deployment to AWS EC2.\n\n---\n\n## 🛠️ Tech Stack\n\n- **Backend**: Laravel 12\n- **Database**: MySQL / MariaDB\n- **Authorization**: Spatie Laravel-Permission\n- **Frontend**: Tailwind CSS / Bootstrap\n- **Dev Tools**: Composer, NPM, GitHub Actions, EC2\n\n---\n\n## ⚙️ Installation \u0026 Local Setup\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/Lprabodha/hotel-reservation\n   cd hotel-reservation\n   ```\n\n2. **Install dependencies:**\n   ```bash\n   composer install\n   npm install\n   ```\n\n3. **Setup environment:**\n   ```bash\n   cp .env.example .env\n   php artisan key:generate\n   ```\n\n4. **Configure database:**\n   - Update `.env` with your database credentials.\n\n5. **Run migrations and seeders:**\n   ```bash\n   php artisan migrate --seed\n   ```\n\n6. **Start the development server:**\n   ```bash\n   php artisan serve\n   ```\n\n7. **Access the app:**\n   - Visit: [http://127.0.0.1:8000](http://127.0.0.1:8000)\n\n---\n\n## 🧑‍💻 User Roles\n\n| Role           | Permissions                                    |\n|----------------|------------------------------------------------|\n| Super Admin    | Full system access, manage all hotels \u0026 users  |\n| Hotel Manager  | Manage assigned hotel, rooms, reports          |\n| Hotel Clerk    | Handle bookings, check-ins/outs                |\n| Travel Company | Book rooms in bulk at negotiated rates         |\n| Customer       | Book/manage personal reservations              |\n\n---\n\n## 🚚 Deployment (CI/CD)\n\nDeployed to AWS EC2 via GitHub Actions.\n\n### Setup\n\n1. **Add these GitHub repository secrets:**\n   - `SERVER_IP`\n   - `SSH_PRIVATE_KEY`\n\n2. **Configure deployment workflow:**\n   - Edit `.github/workflows/deploy.yml` as needed for your environment.\n\n3. **Deploy:**\n   - Push to the `main` branch. Deployment is triggered automatically.\n\n---\n\n\n## 🧪 Running Unit \u0026 Feature Tests\n\nThis project includes Unit Tests and Feature Tests to ensure stability and reliability.\n\n### How to Run Tests\n\n1. **Create a test database:**\n\n   Ensure you have a separate database for testing in your `.env.testing` file:\n\n   ```makefile\n   DB_CONNECTION=mysql\n   DB_DATABASE=hotel_reservation_test\n   DB_USERNAME=root\n   DB_PASSWORD=\n   ```\n\n2. **Run Migrations for Testing:**\n\n   ```bash\n   php artisan migrate --env=testing\n   ```\n\n3. **Execute Tests:**\n\n   ```bash\n   php artisan test\n   ```\n\n   Or if you prefer PestPHP syntax:\n\n   ```bash\n   ./vendor/bin/pest\n   ```\n\n#### Example Test Commands\n\n```bash\n# Run all tests\nphp artisan test\n\n# Run only Feature tests\nphp artisan test --testsuite=Feature\n\n# Run specific test file\nphp artisan test tests/Feature/Admin/ReservationControllerTest.php\n```\n\n\n## 🤝 Contributing\n\nWe love contributions from the community!  \n\n### How to Contribute\n\n1. **Fork the repository**\n2. **Create a feature branch:**\n   ```bash\n   git checkout -b feat/YourFeatureName\n   ```\n3. **Make your changes and commit:**\n   ```bash\n   git commit -m \"Add your descriptive commit message\"\n   ```\n4. **Push your branch:**\n   ```bash\n   git push origin feat/YourFeatureName\n   ```\n5. **Open a Pull Request** and describe your changes\n\nPlease ensure code quality and add relevant tests. For major features, open an issue for discussion first.\n\n---\n\n## 📄 License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n\n## 👨‍💻 Authors\n\n- Tharindu Nuwan\n- Amandi\n- Chathumi\n- Sadunika\n- Lahiru Prabodha\n\n---\n\nHappy coding! 😊\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flprabodha%2Fhotel-reservation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flprabodha%2Fhotel-reservation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flprabodha%2Fhotel-reservation/lists"}