spencerhhubert / haskell-sql-toy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

haskell-sql-toy

how to run/use

requirements

  • ghc
  • cabal
  • npm

run

chmod +x run_scotty.sh

chmod +x run_svelte.sh

in one terminal, ./run_scotty.sh example.json, and another ./run_svelte.sh

(preferably these would be in a docker compose but its being troublesome)

go to https://localhost:3500

challenge details

challenge 1

  • make a sql parser for an array of flat json objects, as if they were a table
  • this is implemented with attoparsec and aeson

challenge 2

  • put that parser on a web server
  • the server uses Scotty inside a ReaderT transformer stack to pass info between the parser, Scotty, and a SQLite database
  • the front end uses Svelte

About


Languages

Language:Haskell 66.6%Language:Svelte 18.5%Language:JavaScript 7.0%Language:HTML 2.7%Language:Python 2.3%Language:TypeScript 1.9%Language:Shell 1.0%