/ocaml-game-geek

OCaml Game Geek is centered around building a GraphQL server that mimics some of the functionality of Board Game Geek.

Primary LanguageOCamlMIT LicenseMIT

OCaml Game Geek

This project is based on the wonderful Lacinia GraphQL tutorial for Clojure. You can read more about it at http://lacinia.readthedocs.io/en/latest/tutorial/.

This project makes use of Dream and ocmal-graphql-server. Two awesome projects that I highly recommend you check out.

OCaml Game Geek is centered around building a GraphQL server that mimics some of the functionality of Board Game Geek.

How to run

opam

opam install . --deps-only

opam exec -- dune build

./_build/default/ogg_server.exe

Or npm / esy

npm install esy && npx esy

npx esy start

Or if you prefer Docker

Build

docker build . -t ogg

Run

docker run -d --name ogg -p 8080:8080 --rm ogg

Stop

docker stop ogg

You should be able to now go to http://localhost:8080 in your web browser and play around with the schema.

ss1 ss2