Welcome to huma-demo 👋
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.
![](https://i.ytimg.com/vi/1iReyppMxXk/hqdefault.jpg)
Prerequisites
Before getting started with huma-demo, make sure you have the following tools installed:
Make sure these tools are installed and properly configured on your system before proceeding.
Usage
To get started with huma-demo, simply run the following command:
make dev
![Run dev](https://i.gyazo.com/e79c264de5566902a5d8e7ff7619d59c.gif)
This will start the development server and allow you to test your API locally.
Test
To run the tests for huma-demo, you can use the following commands:
make test
make test-report # Run e2e tests with hurl and generate a report
make test-coverage
![Run test](https://i.gyazo.com/2af6fbe3c5afb6cc93725dcaa5b8267f.gif)
These commands will run the unit tests and generate a coverage report, respectively.
More usages
To view the available commands and their usage, you can use the following command:
make help
This will display a list of targets and their descriptions, helping you navigate the project.
Usage: make [target]
Targets:
dev Run the application in development mode
tidy Update project dependencies
test Run unit tests
test-coverage Run unit tests with coverage
test-report Run end-to-end tests and generate a report
view-test-report View the generated test report
generate-openapi Generate OpenAPI specification and add it to Fern
generate-fern Generate Fern
generate-go-sdk Generate Go SDK
help Show this help message
Resources
Author
👤 Huynh Duc Dung
Show your support
Give a ⭐️ if this project helped you!
![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)