Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
udryan10 committed May 26, 2016
1 parent 27f44d3 commit 4d91e03
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,21 @@
#### Install dependencies
`glide install`
#### Running
`go run main.go`
#### Testing API
```
$ go run main.go
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /status --> github.com/udryan10/go-api-boilerplate/controllers.Status (3 handlers)
[GIN-debug] Listening and serving HTTP on :8080
```

#### Testing
```
$ curl http://localhost:8080/status -v
* Trying ::1...
* Connected to localhost (::1) port 8080 (#0)
> GET /status HTTP/1.1
Expand Down

0 comments on commit 4d91e03

Please sign in to comment.