/triviell

Simple trivia server in Haskell

Primary LanguageHaskellMIT LicenseMIT

triviaskell

Simple trivia server in Haskell

###Setup

  1. install Haskell: $ brew install ghc cabal-install
  2. clone the repo $ git clone git@github.com:mLuby/triviaskell.git && cd triviaskell
  3. use cabal to install dependencies $ cabal update && cabal install
  4. compile and run the server $ ghc -o server.executable server.hs && ./server.executable

or all at once:

brew install ghc cabal-install
git clone git@github.com:mLuby/triviaskell.git && cd triviaskell
cabal update && cabal install
ghc -o server.executable server.hs && ./server.executable

#Newer instructions:

  1. install stack.
  2. in repo, run $ stack build && stack exec trivia.
  3. $ curl localhost:3000/questions/1
  4. $ curl localhost:3000/questions/