top
(README)
Fibonacci Web Server

In order to build and run this program:

- You would have to install Go Prgramming Language(https://golang.org) first,
- ... and test your installtion(https://golang.org/doc/install#testing).

Steps to install and run:

- go get -t github.com/Unknwon/fws
- $GOPATH/bin/fws

The server is now running on http://localhost:3000/ .

Some examples of using Fibonacci sequence calculator:

- 422: curl -i http://localhost:3000/fibonacci?n=-1
- 200: curl -i http://localhost:3000/fibonacci?n=0
- 200: curl -i http://localhost:3000/fibonacci?n=1
- 200: curl -i http://localhost:3000/fibonacci?n=5
- 422: curl -i http://localhost:3000/fibonacci?n=100

To run unit tests:

- cd $GOPATH/src/github.com/Unknwon/fws
- go test -v ./...

Limitations:

If the Fibonacci number is too large, server will return 422 means unprocessable.

Imports 5 package(s)

  1. github.com/Unknwon/fws/routers/v1
  2. github.com/Unknwon/log
  3. github.com/Unknwon/macaron
  4. github.com/Unknwon/fws/modules/middleware
  5. github.com/Unknwon/fws/modules/setting

Test imports 1 package(s)

  1. github.com/smartystreets/goconvey/convey