Skip to content

pengux/go-web-convey-seed

Repository files navigation

baby-gopher

go-web-convey-seed

A Go seed project for building RESTful JSON API using gocraft/web as router and Goconvey as test framework

Features

  • Modular structure with pluggable endpoints
  • Base controller with common actions
  • Base data service with common methods
  • Testable using 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.

About

A seed Go project based on gocraft/web for routing and goconvey for tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages