Skip to content

Latest commit

 

History

History
executable file
·
68 lines (46 loc) · 1.47 KB

README.md

File metadata and controls

executable file
·
68 lines (46 loc) · 1.47 KB

alt tag

Build Status

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.

Configured with

  • 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

Installation

$ 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

Running Your Application

$ go run *.go

Building Your Application

$ go build -v
$ ./gin-boilerplate

Testing Your Application

$ go test -v ./tests/*

License

(The MIT License)