Installation#
Prerequisites#
Huma requires Go 1.21 or newer, so install that first. You'll also want some kind of text editor or IDE to write code and a terminal to run commands.
Project Setup#
Next, open a terminal and create a new Go project, then go get the Huma dependency to it's ready to be imported:
You should now have a directory structure like this:
That's it! Now you are ready to build your first Huma API!