Skip to content

jmptrader/forgery

 
 

Repository files navigation

Forgery

Build Status

WARNING: WORK IN PROGRESS

Forgery is a minimal and flexible golang web application framework, providing a robust set of features for building single and multi-page, web applications.

package main

import(
    "github.com/ricallinson/forgery"
)

func init() {
    app := f.CreateServer()
    app.Get("/", func(req *f.Request, res *f.Response, next func()) {
        res.Send("Hello world.")
    })
    app.Listen(3000)
}
  • Built on Stackr
  • Robust routing (almost there)
  • HTTP helpers (redirection, caching, etc)
  • View system supporting 1 template engine (hopefully more will come)
  • Content negotiation
  • Focus on high performance
  • Environment based configuration
  • High test coverage

Testing

The following should all be executed from the forgery directory $GOPATH/src/github.com/ricallinson/forgery/.

Install

go get github.com/ricallinson/simplebdd

Run

go test

Code Coverage

Install

go get github.com/axw/gocov/gocov
go get -u github.com/matm/gocov-html

Generate

gocov test | gocov-html > ./reports/coverage.html

Notes

This project started out as a clone of the superb Node.js library Express.

About

Forgery is a minimal and flexible Go web application framework, providing a robust set of features for building single and multi-page, web applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 64.5%
  • Go 35.5%