Skip to content

REST APIs used to consume the sinaloa-cli commands.

License

Notifications You must be signed in to change notification settings

dalecosta1/sinaloa-api

Repository files navigation

SINALOA-API

REST APIs used to consume the sinaloa-cli commands.

Go Module Init

go mod init github.com/dalecosta1/sinaloa-api
go mod tidy

Go modules & libraries

Install Swagger Library

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

Install Gin-gogin

go get -u github.com/gin-gonic/gin

Install Godotenv

go install github.com/joho/godotenv/cmd/godotenv@latest

Get references

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

Run

go run main.go

Generate Swagger Documentation

Export env variables

export GOBIN=~/go/bin
export PATH=$PATH:$GOBIN

and

sudo chmod +x swagger.sh
./swagger.sh

About

REST APIs used to consume the sinaloa-cli commands.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages