Skip to content

aztecrex/haskell-scotty-spike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haskell Scotty Spike

Try to get a minimum useful REST service from Scotty

Get Ready

  1. You need stack installed: https://github.com/commercialhaskell/stack
  2. Clone this repo
  3. You might need the right GHC. From the project dir: stack setup
  4. The build will try to create the mysql library, for that you need mysql_config, on Ubuntu, sudo apt-get install libmysqlclient-dev
  5. Also, right now you need a local mysql DB with a non-password-protected root account and a database called 'test'. Sorry. Fixing it shortly.

Run It

From the project dir: stack exec haskell-scotty-spike-exe

Feel Its Power!

  • Be greeted: curl -v localhost:8099/hello
  • Access MySQL data: curl -v localhost:8099/answer

About

Try to get a minimum useful REST service from Scotty

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published