https://github.com/pengux/go-web-convey-seed
A seed Go project based on gocraft/web for routing and goconvey for tests
https://github.com/pengux/go-web-convey-seed
Last synced: 2 months ago
JSON representation
A seed Go project based on gocraft/web for routing and goconvey for tests
- Host: GitHub
- URL: https://github.com/pengux/go-web-convey-seed
- Owner: pengux
- Created: 2013-12-27T01:54:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-12T07:11:02.000Z (over 11 years ago)
- Last Synced: 2025-02-05T10:14:45.480Z (4 months ago)
- Language: Go
- Size: 4.08 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](http://www.babygopher.org)
# go-web-convey-seed
A Go seed project for building RESTful JSON API using [gocraft/web](https://github.com/gocraft/web) as router and [Goconvey](http://smartystreets.github.io/goconvey/) as test framework## Features
* Modular structure with pluggable endpoints
* Base controller with common actions
* Base data service with common methods
* Testable using [Goconvey](http://smartystreets.github.io/goconvey/)## Usage
1. Clone/download this repo into your project folder
2. 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.
3. Edit the dao.go and remove all test code (with comment "ONLY FOR TEST") and start implementing your own DB integration
4. Run your tests with Goconvey### Changes
* 2013-12-27 The current dao.go mockup does not work with tests yet.