huma-demo

command module
v0.0.0-...-06695a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: MIT Imports: 8 Imported by: 0

README

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.

🏠 Homepage

Demo

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

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

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!

kofi paypal buymeacoffee

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
client
go
Package sdk provides primitives to interact with the openapi HTTP API.
Package sdk provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL