go-gin-mgo-demo

A demo CRUD application in golang using the popular gin-gonic framework

Github stars Tracking Chart

go-gin-mgo-demo

A demo CRUD application in golang using the popular gin-gonic framework

Development

  1. Clone the (forked) repo.
  2. Then, run
$ go get github.com/codegangsta/gin

codegangsta/gin is used to to automatically compile files while you are developing

  1. Run
$ go get && go install && PORT=7000 DEBUG=* gin -p 9000 -a 7000 -i run # or run make dev

Then visit localhost:7000

  1. MONGODB_URL and PORT can be configured by setting the env variable.
$ export MONGODB_URL=mongodb://
$ export PORT=7000
  1. godep is used for dependency management. So if you add or remove deps, make sure you run godep save before pushing code. Refer to its documentation for more info on how to use it.

Usage

$ go get github.com/madhums/go-gin-mgo-demo
$ PORT=7000 GIN_MODE=release go-gin-mgo-demo # should start listening on port 7000

Credits

Thanks to all the dependent packages

Overview

Name With Ownermadhums/go-gin-mgo-demo
Primary LanguageGo
Program languageMakefile (Language Count: 5)
Platform
License:MIT License
Release Count0
Created At2015-08-08 00:48:53
Pushed At2023-06-18 21:10:29
Last Commit At2023-06-18 23:10:29
Stargazers Count162
Watchers Count13
Fork Count37
Commits Count16
Has Issues Enabled
Issues Count2
Issue Open Count2
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top