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.
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.
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.
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
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.
To run the testsuite for yesod-fib, please invoking the following command.
stack test yesod-fib