{"id":15723500,"url":"https://github.com/thesmartmonkey/create-hono-cloudflare-workers-rest-api","last_synced_at":"2025-05-13T04:35:27.942Z","repository":{"id":233144880,"uuid":"786147700","full_name":"TheSmartMonkey/create-hono-cloudflare-workers-rest-api","owner":"TheSmartMonkey","description":"Lightweight Honojs rest api template for side project or micro Saas on cloudflare workers","archived":false,"fork":false,"pushed_at":"2025-04-29T20:18:37.000Z","size":286,"stargazers_count":12,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T21:23:45.581Z","etag":null,"topics":["bun","cloudflare-workers","hono","rest-api","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheSmartMonkey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-04-13T15:23:46.000Z","updated_at":"2025-04-29T20:18:40.000Z","dependencies_parsed_at":"2024-06-05T20:09:50.436Z","dependency_job_id":"b4b392e8-78bc-4612-8d74-644f90c27470","html_url":"https://github.com/TheSmartMonkey/create-hono-cloudflare-workers-rest-api","commit_stats":null,"previous_names":["thesmartmonkey/create-hono-cloudflare-workers-rest-api"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSmartMonkey%2Fcreate-hono-cloudflare-workers-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSmartMonkey%2Fcreate-hono-cloudflare-workers-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSmartMonkey%2Fcreate-hono-cloudflare-workers-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSmartMonkey%2Fcreate-hono-cloudflare-workers-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheSmartMonkey","download_url":"https://codeload.github.com/TheSmartMonkey/create-hono-cloudflare-workers-rest-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253877361,"owners_count":21977634,"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":["bun","cloudflare-workers","hono","rest-api","typescript"],"created_at":"2024-10-03T22:11:55.125Z","updated_at":"2025-05-13T04:35:27.930Z","avatar_url":"https://github.com/TheSmartMonkey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-hono-cloudflare-workers-rest-api\n\n🚀 Welcome to [HonoJS](https://hono.dev/) REST API Template 🚀\n\n## Features\n\n🛠️ Minimal Setup, Maximum Power\n\n⚙️ Middleware Magic\n\n🔐 JWT token Authentication\n\n📚 Swagger UI and openapi documentation (with auto generate code for the frontend)\n\n✅ Route validation with [zod](https://zod.dev/)\n\n🧪 Testing with [jest](https://jestjs.io/fr/)\n\n🦋 Beautiful code with [eslint](https://eslint.org/) and [prettier](https://prettier.io/)\n\n## Getting Started\n\nCreate a new project\n\n```sh\nnpx degit https://github.com/TheSmartMonkey/create-hono-cloudflare-workers-rest-api backend\n```\n\nCreate a `wrangler.toml` based on `wrangler.default.toml`\n\nInstall dependancies\n\n```sh\nbun i\n```\n\nStart coding 🧑‍💻\n\n```sh\nbun start\n```\n\nDeploy to cloudflare 🚀\n\n```sh\nbun run deploy\n```\n\nSwagger UI 📚 : http://127.0.0.1:8787/public/api\n\nYou can add the JWT token in the Authorize button in the top right corner\n\nExemple token with secret `1234` :\n\n```sh\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJmYWtlVXNlcklkIiwiZW1haWwiOiJmYWtlRW1haWwiLCJpYXQiOjE3NDAyMjUwODh9.PcHnkcIxknYZbaR7G4R0KaYAWAKeaHJ5cZYIUIPSYRA\n```\n\nEncode a JWT token: [JWT Encoder/Decoder](https://10015.io/tools/jwt-encoder-decoder)\n\n## Generate openapi spec\n\nEdit `openapitools.json` config to specify the code generation (typescript-angular, typescript-node, etc)\n\nThen run this command to generate the code\n\n```sh\nbun run genapi\n```\n\nYou should have the generated code in `dist/api`\n\n## Testing\n\nTest you code 🧪\n\n```sh\nbun run test\n```\n\n### Run Specific Tests\n\nRun unit tests 🧪\n_Test individual components or functions_\n\n```sh\nbun run unit\n```\n\nRun integration tests 🧪\n_Test your code with external dependencies like databases, APIs, etc_\n\n```sh\nbun run integration\n```\n\n### Grouping Tests\n\nTests are grouped using Jest's `@group` annotation:\n\n```js\n/**\n * @group unit\n */\n```\n\n```js\n/**\n * @group integration\n */\n```\n\nThis helps in organizing and running specific groups of tests\n\n## More Commands\n\nFix you code to make it Beautiful 🦋\n\n```sh\nbun run fix\n```\n\nFor more commands:\n\n```sh\nbun run\n```\n\nHappy coding! 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesmartmonkey%2Fcreate-hono-cloudflare-workers-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesmartmonkey%2Fcreate-hono-cloudflare-workers-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesmartmonkey%2Fcreate-hono-cloudflare-workers-rest-api/lists"}