No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
src
static
templates
test
.dir-locals.el
.gitignore
README.org
client_session_key.aes
package.yaml
stack.yaml

README.org

yesod-fib

Introduction

yesod-fib is an web service for returning the Fibonacci list, following the REST style.

yesod-fib is developed on Haskell, using the web service framework Yesod.

Preparation

To build yesod-fib, you must have stack available in your system.

stack is the package managing tool for Haskell project, which is yesod-fib and Yesod built upon.

Please refer to stack’s installation guild for how to install stack to your system.

Build yesod-fib

Once stack is available, you can build yesod-fib by invoking the following command within yesod-fib project directory.

stack build yesod-fib

stack will download the Haskell compiler GHC, if it is not available in your system, and necessary libraries to build yesod-fib and finally build yesod-fib. This may take quite a long time to finish. Please be patient.

Deploy yesod-fib

Once stack finishes building yesod-fib, please invoke the following command to deploy yesod-fib.

stack exec yesod-fib

yesod-fib listens to port 3000 and accept URL /fib/number (Replace number with any integer number). It will return the Fibonacci list of length of the given number. If the given number is negative, it will return an error message.

Test yesod-fib

To run the testsuite for yesod-fib, please invoking the following command.

stack test yesod-fib