{"id":17157750,"url":"https://github.com/lessp/ocaml-dream-mvc","last_synced_at":"2026-02-27T03:32:21.528Z","repository":{"id":242577477,"uuid":"809093840","full_name":"lessp/ocaml-dream-mvc","owner":"lessp","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-07T18:26:54.000Z","size":46,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T23:41:17.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Reason","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/lessp.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-01T17:03:51.000Z","updated_at":"2025-09-01T13:25:26.000Z","dependencies_parsed_at":"2025-04-10T16:41:53.885Z","dependency_job_id":"4398d0dd-06cc-4ef0-8c3b-355ab7642b59","html_url":"https://github.com/lessp/ocaml-dream-mvc","commit_stats":null,"previous_names":["lessp/ocaml-dream-mvc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lessp/ocaml-dream-mvc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lessp%2Focaml-dream-mvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lessp%2Focaml-dream-mvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lessp%2Focaml-dream-mvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lessp%2Focaml-dream-mvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lessp","download_url":"https://codeload.github.com/lessp/ocaml-dream-mvc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lessp%2Focaml-dream-mvc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29883725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-14T22:09:41.566Z","updated_at":"2026-02-27T03:32:21.495Z","avatar_url":"https://github.com/lessp.png","language":"Reason","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCaml MVC\n\nThis is a simple example of a blog application using the Model-View-Controller (MVC) design pattern in OCaml.\n\n## Getting Started\n\nTo run the application, you need to have OCaml installed on your machine. You can download OCaml from the [official website](https://ocaml.org/docs/install.html).\n\nAfter installing OCaml, you can run the following commands to build and run the application:\n\n\u003e Note: Environment variables `DATABASE_URI` must be set to connect to a PostgreSQL database.\n\n```bash\nopam install . --deps-only --yes\ndune build --profile=release\ndune exec src/main.exe\nopen http://localhost:3000\n```\n\n## Technologies\n\n- **Server**: [Dream](https://aantron.github.io/dream/)\n\n  Dream is a web framework for OCaml that is designed to be easy to use, fast, and secure.\n\n- **SQL**: [Caqti](https://github.com/paurkedal/ocaml-caqti)\n\n- **Templating**: [`Html_of_jsx`](https://github.com/davesnx/html_of_jsx/)\n\n  `Html_of_jsx` is a library to convert JSX to HTML in OCaml. See [views](./src/views) for examples.\n\n## File Structure\n\n- [`src/Main.ml`](./src/Main.ml): The entry point of the application.\n- [`src/controllers`](./src/controllers): Contains the controllers for the application.\n- [`src/models`](./src/models): Contains the models interacting with the database.\n- [`src/views`](./src/views): Contains the views for the application.\n- [`src/types`](./src/types): Contains the types for the application.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flessp%2Focaml-dream-mvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flessp%2Focaml-dream-mvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flessp%2Focaml-dream-mvc/lists"}