This is an example of a fullstack Reason + GraphQL application that uses a native backend and a client compiled to JavaScript through BuckleScript, whilst sharing types between the backend and the frontend.
This was initially based on @jaredly's isomagic-todos experiment that accomplished sharing types between the backend & frontend through some PPX magic.
In this case, we leverage the power of GraphQL and its support in OCaml through
ocaml-graphql-server and
graphql_ppx to build our API through shared
OCaml / Reason types (have a look in src/shared).
yarn && yarn build && yarn bundleNote: it's a quiet startup; check http://localhost:8080/graphql to see that it's running!
npm install -g esyesy @serveresy @server x graphqlsrc/server/schema.re)localhost:8080/graphql for exploring and
playing with the queries and mutations.MIT
OCaml
80.5%
HTML
17.1%
This is an example of a fullstack Reason + GraphQL application that uses a native backend and a client compiled to JavaScript through BuckleScript, whilst sharing types between the backend and the frontend.
This was initially based on @jaredly's isomagic-todos experiment that accomplished sharing types between the backend & frontend through some PPX magic.
In this case, we leverage the power of GraphQL and its support in OCaml through
ocaml-graphql-server and
graphql_ppx to build our API through shared
OCaml / Reason types (have a look in src/shared).
yarn && yarn build && yarn bundleNote: it's a quiet startup; check http://localhost:8080/graphql to see that it's running!
npm install -g esyesy @serveresy @server x graphqlsrc/server/schema.re)localhost:8080/graphql for exploring and
playing with the queries and mutations.MIT
OCaml
80.5%
HTML
17.1%