{"id":50908031,"url":"https://github.com/anucha-tk/go-booking-management","last_synced_at":"2026-06-16T07:02:39.090Z","repository":{"id":356856585,"uuid":"1234349258","full_name":"anucha-tk/go-booking-management","owner":"anucha-tk","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-10T04:18:03.000Z","size":1410,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-10T06:42:17.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/anucha-tk.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":"2026-05-10T04:14:41.000Z","updated_at":"2026-05-10T04:18:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/anucha-tk/go-booking-management","commit_stats":null,"previous_names":["anucha-tk/go-booking-management"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/anucha-tk/go-booking-management","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anucha-tk%2Fgo-booking-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anucha-tk%2Fgo-booking-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anucha-tk%2Fgo-booking-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anucha-tk%2Fgo-booking-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anucha-tk","download_url":"https://codeload.github.com/anucha-tk/go-booking-management/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anucha-tk%2Fgo-booking-management/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34393305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-06-16T07:02:38.311Z","updated_at":"2026-06-16T07:02:39.082Z","avatar_url":"https://github.com/anucha-tk.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Booking Management System\n\nA robust, enterprise-grade booking management system built with Go, focusing on high performance, maintainability, and architectural excellence.\n\n## 🚀 Overview\n\nThis system provides a comprehensive set of APIs for managing room bookings, featuring:\n\n- **JWT-based Authentication** with token revocation (JTI).\n- **Role-Based Access Control (RBAC)** for users and administrative officers.\n- **Room Management** with detailed views and booking history.\n- **Concurrency Control** to prevent double bookings.\n- **Structured Logging** and **Rate Limiting**.\n- **Automated API Documentation** with Swagger/Scalar.\n\n## 🛠 Tech Stack\n\n- **Core**: Go (Golang) 1.21+\n- **Web Framework**: [Gin Gonic](https://github.com/gin-gonic/gin)\n- **Database**: [PostgreSQL](https://www.postgresql.org/)\n- **ORM/Query Generator**: [SQLC](https://sqlc.dev/) (Type-safe SQL)\n- **Migrations**: [Golang Migrate](https://github.com/golang-migrate/migrate)\n- **Authentication**: JWT (JSON Web Tokens)\n- **Documentation**: [Swagger](https://github.com/swaggo/swag) / [Scalar](https://github.com/scalar/scalar)\n- **Task Runner**: [Taskfile](https://taskfile.dev/)\n- **Live Reload**: [Air](https://github.com/cosmtrek/air)\n- **Linting**: [GolangCI-Lint](https://golangci-lint.run/)\n\n## 📖 Documentation\n\nDetailed documentation is available in the `docs/` directory:\n\n- [**Architecture**](docs/architecture.md): System design, patterns, and architectural decisions.\n- [**API Guide**](docs/api-guide.md): Comprehensive guide to using the available APIs.\n- [**Data Models**](docs/data-models.md): Database schema and entity relationships.\n- [**Development Guide**](docs/development-guide.md): Setup instructions and workflow patterns.\n- [**Project Index**](docs/index.md): Entry point for all project documentation.\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Go 1.21+\n- Docker \u0026 Docker Compose\n- [Task](https://taskfile.dev/installation/) (Task runner)\n\n### Setup\n\n1. **Clone the repository**\n2. **Setup environment variables**\n   ```bash\n   cp .env.example .env\n   ```\n3. **Start the database**\n   ```bash\n   task docker:up\n   ```\n4. **Run migrations**\n   ```bash\n   task db:migrate:up\n   ```\n5. **Seed the database (Optional)**\n   ```bash\n   task db:seed\n   ```\n6. **Run the application**\n   ```bash\n   task run\n   ```\n\n## 🛠 Development Tasks\n\nWe use `Taskfile` for common development operations:\n\n| Task                      | Description                        |\n| :------------------------ | :--------------------------------- |\n| `task run`                | Run the API server                 |\n| `task watch`              | Run with live reload (Air)         |\n| `task build`              | Build the binary                   |\n| `task test`               | Run all unit tests                 |\n| `task test:coverage`      | Run tests and verify 80% threshold |\n| `task lint`               | Run golangci-lint                  |\n| `task swagger:generate`   | Update API documentation           |\n| `task docker:up` / `down` | Manage DB container                |\n\n## 🧪 Testing\n\nThe project maintains a high quality standard with **\u003e80% test coverage**.\n\n```bash\n# Run tests and ensure coverage threshold\ntask test:coverage\n\n# Run integration tests\ntask itest\n```\n\n## 🔒 Security\n\n- **Rate Limiting**: Protected against brute force and DDoS.\n- **JWT Revocation**: Secure logout functionality using JTI tracking.\n- **Input Validation**: Strict DTO validation for all API requests.\n- **Role Isolation**: Sensitive operations restricted to `RoleOfficer`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanucha-tk%2Fgo-booking-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanucha-tk%2Fgo-booking-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanucha-tk%2Fgo-booking-management/lists"}