Skip to content

mLuby/triviell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

triviaskell

Simple trivia server in Haskell

###Setup

  1. install Haskell: $ brew install ghc cabal-install
  2. clone the repo $ git clone [email protected]: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 [email protected]: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/

About

Simple trivia server in Haskell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published