Skip to content

h12w/golang-rest-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Resource Server

Build Status Coverage Status

This is an example of a basic API server that retrieves resources based on the URL pattern. It relies on a MongoDB instance and standard REST conventions.

Getting Started

Seed your MongoDB with some data. In your mongo client, run the following:

use test
db.notes.insert({"note": "This is a note."});
  1. Clone the repo.
  2. go get -d ./... or if you have gpm installed gpm.
  3. Run go run server.go --databaseName=test --databaseUrl=localhost:27017
  4. Go to http://localhost:3000/notes

This is a work in progress.

About

A Go server that provides basic resource retrieval. Built with Martini.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 89.9%
  • Shell 10.1%