{"id":24579917,"url":"https://github.com/vit0rr/ocaml-crud","last_synced_at":"2025-04-23T23:47:52.749Z","repository":{"id":272214381,"uuid":"915772255","full_name":"vit0rr/ocaml-crud","owner":"vit0rr","description":"OCaml CRUD Todo App using Melange with JWT auth","archived":false,"fork":false,"pushed_at":"2025-01-30T00:58:25.000Z","size":60,"stargazers_count":20,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T23:47:49.055Z","etag":null,"topics":["authentication","crud","crud-ocaml","docker","docker-compose","dune","jwt","melange","ocaml","ocaml-crud","opam","postgresql","reasonml"],"latest_commit_sha":null,"homepage":"","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/vit0rr.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}},"created_at":"2025-01-12T18:58:04.000Z","updated_at":"2025-02-27T00:39:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb5b9beb-da8d-4074-b359-3ee9bc65c429","html_url":"https://github.com/vit0rr/ocaml-crud","commit_stats":null,"previous_names":["vit0rr/ocaml-crud"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vit0rr%2Focaml-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vit0rr%2Focaml-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vit0rr%2Focaml-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vit0rr%2Focaml-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vit0rr","download_url":"https://codeload.github.com/vit0rr/ocaml-crud/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535098,"owners_count":21446505,"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":["authentication","crud","crud-ocaml","docker","docker-compose","dune","jwt","melange","ocaml","ocaml-crud","opam","postgresql","reasonml"],"created_at":"2025-01-24T01:29:43.181Z","updated_at":"2025-04-23T23:47:52.740Z","avatar_url":"https://github.com/vit0rr.png","language":"Reason","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCaml CRUD Todo App\n\nA full-stack todo application built with OCaml (Dream) backend and ReasonReact frontend, featuring JWT authentication and PostgreSQL database.\n\nhttps://github.com/user-attachments/assets/81fd43af-36fb-4ebf-bfa3-4ffee1a24581\n\n## Features\n\n- JWT Authentication\n- Tasks CRUD operations\n- RESTful API\n- Protected routes\n- Type-safe database queries with Rapper\n\n## Tech Stack\n\n### Backend\n- OCaml\n- Dream (Web framework)\n- Caqti (Database interface)\n- PostgreSQL\n- JWT (JSON Web Tokens)\n- Bcrypt (Password hashing)\n\n### Frontend\n- Melange (ReasonML)\n- TailwindCSS\n\n## API Routes\n\n| Method | Path | Description | Auth Required |\n|--------|------|-------------|---------------|\n| POST | `/users` | Create a new user | No |\n| POST | `/login` | Login a user | No |\n| GET | `/verify-token` | Verify JWT token | Yes |\n| POST | `/tasks` | Create a new task | Yes |\n| GET | `/tasks` | Get all tasks for user | Yes |\n| DELETE | `/tasks/:id` | Delete a task | Yes |\n| PUT | `/tasks/:id` | Update a task | Yes |\n\n## Getting Started\n\n### Prerequisites\n\n- OCaml\n- Node.js\n- PostgreSQL\n- OPAM\n\n### Environment Variables\n\nCreate a `.env` file in the root directory:\n```\nPOSTGRES_URL=postgresql://admin:password@localhost:5432/ocaml_crud\nJWT_SECRET=your_key\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvit0rr%2Focaml-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvit0rr%2Focaml-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvit0rr%2Focaml-crud/lists"}