{"id":20016606,"url":"https://github.com/jellydn/huma-demo","last_synced_at":"2025-05-04T22:31:44.310Z","repository":{"id":213372224,"uuid":"733940737","full_name":"jellydn/huma-demo","owner":"jellydn","description":"A modern, simple, fast \u0026 flexible micro framework for building HTTP REST/RPC APIs in Golang backed by OpenAPI 3 and JSON Schema.","archived":false,"fork":false,"pushed_at":"2025-04-29T13:14:26.000Z","size":100,"stargazers_count":6,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-29T14:31:02.601Z","etag":null,"topics":["api","golang","huma"],"latest_commit_sha":null,"homepage":"https://huma-demo.fly.dev/docs","language":"Go","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/jellydn.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}},"created_at":"2023-12-20T13:37:28.000Z","updated_at":"2025-03-11T18:12:59.000Z","dependencies_parsed_at":"2023-12-20T17:21:00.767Z","dependency_job_id":"6e724f05-b23e-449e-9346-3380ad438f11","html_url":"https://github.com/jellydn/huma-demo","commit_stats":null,"previous_names":["jellydn/huma-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Fhuma-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Fhuma-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Fhuma-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jellydn%2Fhuma-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jellydn","download_url":"https://codeload.github.com/jellydn/huma-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252408325,"owners_count":21743095,"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":["api","golang","huma"],"created_at":"2024-11-13T08:12:07.626Z","updated_at":"2025-05-04T22:31:43.819Z","avatar_url":"https://github.com/jellydn.png","language":"Go","funding_links":["https://ko-fi.com/dunghd","https://paypal.me/dunghd","https://www.buymeacoffee.com/dunghd"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to huma-demo 👋\u003c/h1\u003e\n\u003cp\u003e\n  Welcome to huma-demo, a modern, simple, fast, and flexible micro-framework for building HTTP REST/RPC APIs in Golang. It is backed by OpenAPI 3 and JSON Schema, providing a robust and standardized approach to API development.\n\u003c/p\u003e\n\n[![Exploring Huma with IT Man: A Journey Through Modern Micro-Frameworks](https://i.ytimg.com/vi/1iReyppMxXk/hqdefault.jpg)](https://www.youtube.com/watch?v=1iReyppMxXk)\n\n## 🏠 [Homepage](https://huma.rocks/)\n\n### ✨ [Demo](https://huma-demo.fly.dev/docs)\n\n## Prerequisites\n\nBefore getting started with huma-demo, make sure you have the following tools installed:\n\n- [The Go Programming Language](https://go.dev/) (version 1.20 or higher)\n- [Bun](https://bun.sh/) - A fast all-in-one JavaScript runtime\n- [OrbStack](https://orbstack.dev/) - Fast, light, simple Docker \u0026 Linux on macOS\n- [Hurl](https://hurl.dev/) - Run and Test HTTP Requests\n\nMake sure these tools are installed and properly configured on your system before proceeding.\n\n## Usage\n\nTo get started with huma-demo, simply run the following command:\n\n```sh\nmake dev\n```\n\n[![Run dev](https://i.gyazo.com/e79c264de5566902a5d8e7ff7619d59c.gif)](https://gyazo.com/e79c264de5566902a5d8e7ff7619d59c)\n\nThis will start the development server and allow you to test your API locally.\n\n## Test\n\nTo run the tests for huma-demo, you can use the following commands:\n\n```sh\nmake test\nmake test-report # Run e2e tests with hurl and generate a report\nmake test-coverage\n```\n\n[![Run test](https://i.gyazo.com/2af6fbe3c5afb6cc93725dcaa5b8267f.gif)](https://gyazo.com/2af6fbe3c5afb6cc93725dcaa5b8267f)\n\nThese commands will run the unit tests and generate a coverage report, respectively.\n\n## More usages\n\nTo view the available commands and their usage, you can use the following command:\n\n```sh\nmake help\n```\n\nThis will display a list of targets and their descriptions, helping you navigate the project.\n\n```sh\nUsage: make [target]\n\nTargets:\n  dev                Run the application in development mode\n  tidy               Update project dependencies\n  test               Run unit tests\n  test-coverage      Run unit tests with coverage\n  test-report        Run end-to-end tests and generate a report\n  view-test-report   View the generated test report\n  generate-openapi   Generate OpenAPI specification and add it to Fern\n  generate-fern      Generate Fern\n  generate-go-sdk    Generate Go SDK\n  help               Show this help message\n```\n\n## Resources\n\n- [Installation - Huma](https://huma.rocks/tutorial/installation/)\n- [APIs in Go with Huma 2.0](https://dgt.hashnode.dev/apis-in-go-with-huma-20)\n- [fern-api/fern: SDKs and Docs for your API](https://github.com/fern-api/fern)\n- [A CLI for REST APIs - DEV Community](https://dev.to/danielgtaylor/a-cli-for-rest-apis-part-1-104b)\n\n## Author\n\n👤 **Huynh Duc Dung**\n\n- Website: https://productsway.com/\n- Twitter: [@jellydn](https://twitter.com/jellydn)\n- Github: [@jellydn](https://github.com/jellydn)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n[![kofi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white)](https://ko-fi.com/dunghd)\n[![paypal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge\u0026logo=paypal\u0026logoColor=white)](https://paypal.me/dunghd)\n[![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge\u0026logo=buy-me-a-coffee\u0026logoColor=black)](https://www.buymeacoffee.com/dunghd)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellydn%2Fhuma-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjellydn%2Fhuma-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjellydn%2Fhuma-demo/lists"}