Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nwaywood/gowiki

Extension of golang.org "Writing Web Applications" codewalk
https://github.com/nwaywood/gowiki

Last synced: 1 day ago
JSON representation

Extension of golang.org "Writing Web Applications" codewalk

Awesome Lists containing this project

README

        

# gowiki
Extension of golang.org's [Writing Web Applications](http://golang.org/doc/articles/wiki/) codewalk

This is my first Go project. After I completed [A Tour of Go](http://tour.golang.org/welcome/1) I worked through the [Writing Web Applications](http://golang.org/doc/articles/wiki/) codewalk.

To learn more about Go I have decided to extend the codewalk solution.

The **current** extensions are:
- Dependency management with [nut](https://github.com/jingweno/nut)
- Using [MongoDb](http://www.mongodb.org/) (via [mgo](http://labix.org/mgo)) instead of using files
- Using [mux](http://www.gorillatoolkit.org/pkg/mux) router to parameterise url, enforce http method types and subrouters
- Using [negroni](https://github.com/codegangsta/negroni) to mount generic and subrouter specific middleware

Future planned extensions are:
- make home page display list of wiki pages
- add unit tests

## Setup
- Setup mongoDB
- Install nut dependency manager: `go get github.com/jingweno/nut`
- Install dependencies: `nut install` from project directory

## Usage
- Start mongo: `mongod`
- Compile and run app: `go install gowiki && gowiki`