API Server with 90%+ Test Coverage in 260 Lines of Code
Switch branches/tags
Nothing to show
Clone or download
modocache signature.go: Empty response returns empty array
- Check error from .All()
- When .All() returns no results, return JSON for empty array, not null
Latest commit 0a50cd6 May 12, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
signatures
.gitignore Initial commit May 11, 2014
README.md
main.go

README.md

signatures

A simple RESTful API in Go.

See this blog post for an explanation on how to build your own.

Running the Server

Make sure you have MongoDB installed and running on a standard port.

src/signatures/ $ go install
src/signatures/ $ signatures
[martini] listening on :3000 (development)

Running the Tests

You'll need MongoDB running for these as well.

src/signatures/ $ ginkgo -r --randomizeAllSpecs -cover