golang-rest-server

command module
v0.0.0-...-8549517 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2016 License: MIT Imports: 8 Imported by: 0

README

API Resource Server

Build Status Coverage Status Stories in Ready

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."});

Start up the application server

  1. Install Godep with go get -u github.com/tools/godeps.
  2. Build the application with make build.
  3. Run the application within Docker or standalone.

Run modes

  • With Docker
    • Run make start
    • Access the server at http://$DOCKER_IP:9000/
  • Standalone
    • Run ./golang-rest-server will start the server at http://localhost:9000/ and look for a mongo DB at localhost.
    • Use command line arguments to override: ./golang-rest-server --help

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL