Welcome to Go API Starter KIT!
The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQL database and Redis as the session storage.
- go-gorp: Go Relational Persistence
- RedisStore: Gin middleware for session management with multi-backend support (currently cookie, Redis).
- Built-in CORS Middleware
- Feature PostgreSQL 9.6 JSON queries
- Unit test
$ go get github.com/ShubhamBansal1997/go-api-starter-kit
$ cd $GOPATH/src/github.com/ShubhamBansal1997/go-api-starter-kit
$ go get -t -v ./...
Sometimes you need to get this package manually
$ go get github.com/bmizerany/assert
You will find the database.sql in db/database.sql
And you can import the postgres database using this command:
$ psql -U postgres -h localhost < ./db/database.sql
$ go run *.go
$ go build -v
$ ./gin-boilerplate
$ go test -v ./tests/*
(The MIT License)