{"id":13726329,"url":"https://github.com/anmonteiro/reason-graphql-fullstack","last_synced_at":"2025-05-08T21:45:49.669Z","repository":{"id":76251510,"uuid":"135947126","full_name":"anmonteiro/reason-graphql-fullstack","owner":"anmonteiro","description":"Fullstack Reason + GraphQL Todo List App","archived":false,"fork":false,"pushed_at":"2019-03-24T18:17:35.000Z","size":596,"stargazers_count":245,"open_issues_count":4,"forks_count":19,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-27T14:28:00.384Z","etag":null,"topics":["graphql","native","ocaml","reason","reason-react","reasonml"],"latest_commit_sha":null,"homepage":null,"language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anmonteiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-06-03T22:58:34.000Z","updated_at":"2024-06-04T21:30:18.000Z","dependencies_parsed_at":"2024-01-06T02:03:43.487Z","dependency_job_id":"dd26428b-2e52-4b6c-be7c-fa2ae014c814","html_url":"https://github.com/anmonteiro/reason-graphql-fullstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmonteiro%2Freason-graphql-fullstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmonteiro%2Freason-graphql-fullstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmonteiro%2Freason-graphql-fullstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anmonteiro%2Freason-graphql-fullstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anmonteiro","download_url":"https://codeload.github.com/anmonteiro/reason-graphql-fullstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252655741,"owners_count":21783535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","native","ocaml","reason","reason-react","reasonml"],"created_at":"2024-08-03T01:02:59.531Z","updated_at":"2025-05-08T21:45:49.607Z","avatar_url":"https://github.com/anmonteiro.png","language":"OCaml","funding_links":[],"categories":["OCaml"],"sub_categories":[],"readme":"# Reason / GraphQL Shared Backend\n\nThis is an example of a fullstack Reason + GraphQL application that uses a native\nbackend and a client compiled to JavaScript through BuckleScript, whilst sharing\ntypes between the backend and the frontend.\n\n\u003cimg src=\"./demo.gif\"\u003e\n\n## Technologies / Libraries:\n\nThis was initially based on [@jaredly](https://github.com/jaredly)'s\n[isomagic-todos](https://github.com/jaredly/isomagic-todos) experiment that accomplished\nsharing types between the backend \u0026 frontend through some PPX magic.\n\nIn this case, we leverage the power of GraphQL and its support in OCaml through\n[ocaml-graphql-server](https://github.com/andreas/ocaml-graphql-server) and\n[graphql_ppx](https://github.com/mhallin/graphql_ppx) to build our API through shared\nOCaml / Reason types (have a look in [`src/shared`](./src/shared)).\n\n## Running\n\n### Build the front-end\n\n- `yarn \u0026\u0026 yarn build \u0026\u0026 yarn bundle`\n\n### Build and run the backend\n\n**Note**: _it's a quiet startup; check http://localhost:8080/graphql to see that it's running!_\n\n- `npm install -g esy`\n- `esy @server`\n- `esy @server x graphql`\n\n## Neat tricks\n\n- GraphQL schema fully defined in Reason (see [`src/server/schema.re`](./src/server/schema.re))\n- There's also a GraphiQL instance at `localhost:8080/graphql` for exploring and\nplaying with the queries and mutations.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmonteiro%2Freason-graphql-fullstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanmonteiro%2Freason-graphql-fullstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmonteiro%2Freason-graphql-fullstack/lists"}