A simple CRUD app in golang and mongodb using martini, mgo and godep.
For the reloading of source files, I am using gin
For development, you can just clone the repo and run
$ go get && go install && PORT=7000 DEBUG=* gin -p 9000 run
Then visit localhost:9000
If you just want to run it and see then
$ go get github.com/madhums/go-martini-mgo-demo
$ PORT=7000 go-martini-mgo-demo # should start listening on port 7000
you can also specify MONGODB_URL
env variable and it will connect to it.
- Add features like content negotiation
- Image uploads
- REST API
- vendor experiment
Thanks to go-martini, go-mgo and godep