Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 759 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 759 Bytes

Fiber Demo

Small golang POC for using Fiber to handle requests. Demo is set up to do the following:

  • Serve Open API Spec via Swagger.
  • Generate Open API Spec based on convention and using husky.
  • Handle validation on for models.
  • Demonstrate middleware & logging.
  • Make use of existing fiber middleware.
  • Demonstrate routing available via fiber.

Trying Out

In order to run this husky needs to be installed and prepared:

npm install husky -D
npm run prepare

Additionally we need to install SwagGo:

go install github.com/swaggo/swag/cmd/swag@latest

If isn't working, try making sure the GOPATH is correct:

export PATH=$(go env GOPATH)/bin:$PATH