{"id":20115011,"url":"https://github.com/nikos/elastic-ring","last_synced_at":"2026-05-13T03:08:30.729Z","repository":{"id":145419555,"uuid":"42608994","full_name":"nikos/elastic-ring","owner":"nikos","description":"Sample RESTful web application with Clojure ring, persisting and querying data with elasticsearch in the backend","archived":false,"fork":false,"pushed_at":"2015-09-17T10:53:21.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T06:22:21.223Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikos.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}},"created_at":"2015-09-16T19:34:59.000Z","updated_at":"2017-10-25T16:23:25.000Z","dependencies_parsed_at":"2023-04-07T20:18:48.688Z","dependency_job_id":null,"html_url":"https://github.com/nikos/elastic-ring","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/nikos%2Felastic-ring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikos%2Felastic-ring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikos%2Felastic-ring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikos%2Felastic-ring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikos","download_url":"https://codeload.github.com/nikos/elastic-ring/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241557166,"owners_count":19981881,"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-13T18:33:31.124Z","updated_at":"2026-05-13T03:08:25.707Z","avatar_url":"https://github.com/nikos.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elastic-ring\n\nAn example application on how to integrate elasticsearch with a clojure REST back-end\nallowing to store and query for sample data.\n\n\n## Preparation\n\nInstall elasticsearch (for example via homebrew with `brew install elasticsearch`).\nThe install plugins to adminster elasticsearch via a comfortable admin UI, from\nyour `ES_HOME` (i.e. `/usr/local/Cellar/elasticsearch/1.7.1`) directory:\n\n    bin/plugin --install mobz/elasticsearch-head\n\nThen you can navigate your web browser to:\nhttp://localhost:9200/_plugin/head/\n\n\nElasticsearch HQ (Monitoring and Management Web Application for ElasticSearch instances and clusters)\n\n    bin/plugin --install royrusso/elasticsearch-HQ\n    http://localhost:9200/_plugin/HQ/\n\nBigdesk (Live charts and statistics for elasticsearch cluster):\n\n    bin/plugin --install lukas-vlcek/bigdesk\n\nKopf (web admin interface for elasticsearch):\n\n    bin/plugin --install lmenezes/elasticsearch-kopf      -\u003e /_plugin/kopf\n\nFor easier HTTP interaction, we are going to use httpie (see http://httpie.org),\na user-friendly alternative to curl.\n\n\n## Usage\n\nTo start the web application:\n\n    lein ring server-headless\n\nSee all import initial data:\n\n    http localhost:3000/events\n\nSearch in a boundary box:\n\n   http -v localhost:3000/events/by-location top_right_lat==49.9 top_right_lon==51.1 bottom_left_lat==9.7 bottom_left_lon==10.1\n\nDelete one event:\n\n    http -a admin:secret DELETE localhost:3000/events/\u003cevent-id\u003e\n\n\n## REPL session\n\n    lein repl\n    (use 'elastic-ring.models.events)\n\n\n\n\n## Elasticsearch tipps\n\nLocal Elasticsearch log file (homebrew compliant):\n\n    tail -f /usr/local/var/log/elasticsearch/elasticsearch_niko.log\n\n\n## Elasticsearch resources\n\nDate Formats:\nhttps://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html\n\nQuery syntax:\nhttps://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html\n\nElastisch example:\nhttps://github.com/codemomentum/es-plygrnd/blob/master/src/es_plygrnd/core.clj#L24\n\n\n\n## License\n\nCopyright © 2015 Niko Schmuck\n\nDistributed under the MIT Open-Source License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikos%2Felastic-ring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikos%2Felastic-ring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikos%2Felastic-ring/lists"}