{"id":19726327,"url":"https://github.com/eronalves/compojure-atomicity","last_synced_at":"2025-02-27T19:23:25.426Z","repository":{"id":71663604,"uuid":"97387800","full_name":"eronalves/compojure-atomicity","owner":"eronalves","description":"Project to test Clojure atomicity with ring and compojure","archived":false,"fork":false,"pushed_at":"2017-07-23T21:52:37.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T16:56:12.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eronalves.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-07-16T14:13:18.000Z","updated_at":"2017-07-16T14:22:17.000Z","dependencies_parsed_at":"2023-05-13T17:30:17.675Z","dependency_job_id":null,"html_url":"https://github.com/eronalves/compojure-atomicity","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/eronalves%2Fcompojure-atomicity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eronalves%2Fcompojure-atomicity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eronalves%2Fcompojure-atomicity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eronalves%2Fcompojure-atomicity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eronalves","download_url":"https://codeload.github.com/eronalves/compojure-atomicity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241049802,"owners_count":19900520,"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":[],"created_at":"2024-11-11T23:35:18.296Z","updated_at":"2025-02-27T19:23:25.397Z","avatar_url":"https://github.com/eronalves.png","language":"Clojure","readme":"# Atomicity Clojure Compojure\n\nSimple project to test Clojure [atomicity](https://clojure.org/reference/atoms) with compojure and ring to serve an API blocking duplicate operations.\n\n## Prerequisites\n\nYou will need [Leiningen][] 2.0.0 or above installed.\n\n[leiningen]: https://github.com/technomancy/leiningen\n\n## Running\n\nTo start a web server for the application, run:\n\n    lein ring server\n    \nor\n\n    lein ring server-headless\n    \n    \n## Testing\n\nThe API has the following endpoints:\n\n    localhost:3000/add/:number\n    localhost:3000/has-number/:number\n\nThe endpoint add will add the number on the params in a PersistentQueue Atom using swap!.\nWhen call the same endpoint with same number the add will be blocked.\n\nAnd the endpoint has-number verify if the number was added.\n\n## License\n\nCopyright © 2017 MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feronalves%2Fcompojure-atomicity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feronalves%2Fcompojure-atomicity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feronalves%2Fcompojure-atomicity/lists"}