An open API service indexing awesome lists of open source software.

https://github.com/cwithmichael/ocaml-game-geek

OCaml Game Geek is centered around building a GraphQL server that mimics some of the functionality of Board Game Geek.
https://github.com/cwithmichael/ocaml-game-geek

dream graphql graphql-server ocaml

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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/](http://lacinia.readthedocs.io/en/latest/tutorial/).

This project makes use of
[Dream](https://github.com/aantron/dream)
and [ocmal-graphql-server](https://github.com/andreas/ocaml-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](https://boardgamegeek.com/).

## 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](https://user-images.githubusercontent.com/1703143/169666545-aba23d3e-425e-4a3f-8e55-008d4ef1d1d2.png)
![ss2](https://user-images.githubusercontent.com/1703143/169666546-da16258d-41ad-4690-a5ba-2c247c59b943.png)