A Go seed project for building RESTful JSON API using gocraft/web as router and Goconvey as test framework
- Modular structure with pluggable endpoints
- Base controller with common actions
- Base data service with common methods
- Testable using Goconvey
- Clone/download this repo into your project folder
- Edit the "foo" endpoint (foo.go, foo_controller.go, foo_service.go, foo_test.go) with your own endpoint. You can create new endpoints based on these files.
- Edit the dao.go and remove all test code (with comment "ONLY FOR TEST") and start implementing your own DB integration
- Run your tests with Goconvey
- 2013-12-27 The current dao.go mockup does not work with tests yet.