REST APIs used to consume the sinaloa-cli commands.
go mod init github.com/dalecosta1/sinaloa-api
go mod tidy
go install github.com/swaggo/swag/cmd/swag
go get -u github.com/gin-gonic/gin
go install github.com/joho/godotenv/cmd/godotenv@latest
go get -u github.com/gin-gonic/gin
go get -u github.com/swaggo/files
go get -u github.com/swaggo/gin-swagger
go get -u github.com/dalecosta1/sinaloa-api/api
go get -u github.com/dalecosta1/sinaloa-api/controller
go get -u github.com/dalecosta1/sinaloa-api/docs
go get -u github.com/dalecosta1/sinaloa-api/middlewares
go get -u github.com/dalecosta1/sinaloa-api/repository
go get -u github.com/dalecosta1/sinaloa-api/service
go get -u github.com/joho/godotenv
go run main.go
Export env variables
export GOBIN=~/go/bin
export PATH=$PATH:$GOBIN
and
sudo chmod +x swagger.sh
./swagger.sh