go-lang-skeleton is an API for learning. It consists of three main service
go-lang-skeleton uses a number of open source projects to work properly:
- Mux
- Gorm
- JWT
- .ENV
go-lang-skeleton requires go version go1.12.7 to run.
Install the dependencies and devDependencies and start the server.
$ go get github.com/gorilla/mux
$ go get github.com/jinzhu/gorm
$ go get github.com/dgrijalva/jwt-go
$ go get github.com/joho/godotenv
$ go get github.com/lib/pq
$ go run main.go
To test the current service, just run this command in command line
$ go run main.go
And it will shows the results of test.
As there are three main service in this project, these are the details of each service