- Install dependencies
go mod tidy
. - Run the backend
go run .
. - Visit http://localhost:1323.
If you want to use air for live reloading:
- Install air
go install github.com/cosmtrek/air@latest
. - Be sure that
$GOPATH/bin
is in your$PATH
:export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
orexport PATH=$PATH:$(go env GOPATH)/bin
- Run
air
instead ofgo run .
.