dhax / go-base

Go RESTful API Boilerplate with JWT Authentication backed by PostgreSQL
MIT License
1.5k stars 227 forks source link

how to start #3

Closed JoseRFJuniorLLMs closed 6 years ago

JoseRFJuniorLLMs commented 6 years ago

dev@dev-x:~$ cd Documentos dev@dev-x:~/Documentos$ cd go-base dev@dev-x:~/Documentos/go-base$ go build OK dev@dev-x:~/Documentos/go-base$ go run main.go A longer description that spans multiple lines and likely contains examples and usage of using your application. For example:

Cobra is a CLI library for Go that empowers applications. This application is a tool to generate the needed files to quickly create a Cobra application.

Usage: go-base [command]

Available Commands: gendoc Generate project documentation help Help about any command migrate use go-pg migration tool serve start http server with configured api

Flags: --config string config file (default is $HOME/.go-base.yaml) --db_debug log sql to console -h, --help help for go-base

Use "go-base [command] --help" for more information about a command. dev@dev-x:~/Documentos/go-base$ go-base migrate init go-base: comando não encontrado dev@dev-x:~/Documentos/go-base$ go-base migrate go-base: comando não encontrado dev@dev-x:~/Documentos/go-base$ go-base serve go-base: comando não encontrado dev@dev-x:~/Documentos/go-base$

dhax commented 6 years ago

This is the default Cobra application description printed out. run the http server with: go-base serve