{"id":24757474,"url":"https://github.com/syahrulbhudif/hono-starter-code","last_synced_at":"2026-03-06T12:03:02.519Z","repository":{"id":274636814,"uuid":"923564653","full_name":"SyahrulBhudiF/Hono-Starter-Code","owner":"SyahrulBhudiF","description":"Starter code for RESTful API with hono framework, JWT Access/Refresh Token, Oauth (Google), OTP Email, Redis Caching","archived":false,"fork":false,"pushed_at":"2025-10-14T09:25:09.000Z","size":205,"stargazers_count":34,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-24T10:17:52.198Z","etag":null,"topics":["docker","drizzle-orm","hono","jwt","postgresql","redis","starter-code","template","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/SyahrulBhudiF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2025-01-28T13:30:49.000Z","updated_at":"2025-11-25T15:57:35.000Z","dependencies_parsed_at":"2025-01-28T14:34:00.057Z","dependency_job_id":"a5814cec-b962-4c5e-84be-731d7b69cc38","html_url":"https://github.com/SyahrulBhudiF/Hono-Starter-Code","commit_stats":null,"previous_names":["syahrulbhudif/hono-starter-code"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/SyahrulBhudiF/Hono-Starter-Code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyahrulBhudiF%2FHono-Starter-Code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyahrulBhudiF%2FHono-Starter-Code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyahrulBhudiF%2FHono-Starter-Code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyahrulBhudiF%2FHono-Starter-Code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SyahrulBhudiF","download_url":"https://codeload.github.com/SyahrulBhudiF/Hono-Starter-Code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyahrulBhudiF%2FHono-Starter-Code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30175907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T11:48:51.886Z","status":"ssl_error","status_checked_at":"2026-03-06T11:48:51.460Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["docker","drizzle-orm","hono","jwt","postgresql","redis","starter-code","template","typescript"],"created_at":"2025-01-28T15:22:29.927Z","updated_at":"2026-03-06T12:03:02.495Z","avatar_url":"https://github.com/SyahrulBhudiF.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Hono RestAPI Starter Kit\n\nA modern, production-ready API starter kit built with cutting-edge technologies for rapid development and scalable\nperformance.\n\n## ✨ Features\n\n- **🔥 [Hono](https://hono.dev/)** - Ultra-fast web framework for the edge\n- **🔐 Authentication \u0026 Authorization**\n    - JWT token-based authentication\n    - OAuth2 integration (Google)\n    - Email OTP verification\n- **📊 Database Integration**\n    - [Drizzle ORM](https://orm.drizzle.team/) - Type-safe SQL query builder\n    - PostgreSQL - Reliable, open-source relational database\n- **🗄️ Caching**\n    - Redis for high-performance caching and session management\n- **🐳 DevOps Ready**\n    - Docker \u0026 Docker Compose for containerization\n- **📝 API Documentation**\n    - Auto-generated OpenAPI documentation\n    - Interactive SwaggerUI interface\n\n## 🛠️ Tech Stack\n\n| Category             | Technologies                                         |\n|----------------------|------------------------------------------------------|\n| **Framework**        | [Hono](https://hono.dev/)                            |\n| **Authentication**   | JWT, OAuth2, Email OTP                               |\n| **Database**         | PostgreSQL, [Drizzle ORM](https://orm.drizzle.team/) |\n| **Caching**          | Redis                                                |\n| **Containerization** | Docker                                               |\n| **Package Manager**  | [Bun](https://bun.sh/)                               |\n| **Documentation**    | OpenAPI, SwaggerUI                                   |\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- [Bun](https://bun.sh/) (1.0.0 or later)\n- [Docker](https://www.docker.com/) \u0026 [Docker Compose](https://docs.docker.com/compose/)\n\n### Installation\n\n1. Clone the repository\n   ```bash\n   git clone https://github.com/SyahrulBhudiF/Hono-Starter-Code\n   cd Hono-Starter-Code\n   ```\n\n2. Install dependencies\n   ```bash\n   bun install\n   ```\n\n3. Set up environment variables\n   ```bash\n   cp .env.example .env\n   # Edit .env with your configuration\n   ```\n\n## 🏃‍♂️ Running the Application\n\n### Development Mode\n\nStart the application and all required services (PostgreSQL, Redis) using Docker:\n\n```bash\ndocker compose build\ndocker compose up\n```\n\nThis will launch the development environment with hot reloading enabled.\n\n### Production Mode\n\nFor production deployment, use the same Docker Compose setup with minor configuration adjustments at Dockerfile and\ndocker-compose.yml.\n\n```bash\n# Run in production mode\ndocker compose build --no-cache\ndocker compose up\n```\n\n## 📖 API Documentation\n\nOnce the application is running, you can access the API documentation at:\n\n- **OpenAPI Documentation**: [http://localhost:3000/doc](http://localhost:3000/doc)\n- **Swagger UI**: [http://localhost:3000/ui](http://localhost:3000/ui)\n\n## 📁 Project Structure\n\n```\n📦 ROOT\n├── 📂 drizzle/             # 🔄 Drizzle ORM migration\n├── 📂 src/\n│   ├── 📂 config/          # ⚙️ Configuration files\n│   ├── 📂 controllers/     # 🎮 Request handlers\n│   ├── 📂 middleware/      # 🔌 Custom middleware\n│   ├── 📂 models/          # 📊 Database models\n│   ├── 📂 routes/          # 🛣️ API routes and Swagger documentation\n│   ├── 📂 services/        # 🧩 Business logic\n│   ├── 📂 types/           # 📝 Type definitions and Repository abstraction\n│   ├── 📂 utils/           # 🔧 Utility functions\n│   ├── 📂 validation/      # ✅ Request validation schemas\n│   ├── 📄 index.ts         # 🚀 App entry point\n│   └── 📄 worker.ts        # 👷 Worker entry point\n├── 📄 .env.example         # 🔐 Environment variables example\n├── 📄 compose.yml          # 🐳 Docker Compose configuration\n├── 📄 Dockerfile           # 📦 Docker configuration\n├── 📄 drizzle.config.ts    # 🗃️ Drizzle ORM configuration\n└── 📄 package.json         # 📋 Dependencies and scripts\n```\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyahrulbhudif%2Fhono-starter-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyahrulbhudif%2Fhono-starter-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyahrulbhudif%2Fhono-starter-code/lists"}