{"id":19010817,"url":"https://github.com/meltmedia/dropwizard-jest","last_synced_at":"2025-04-22T23:23:01.013Z","repository":{"id":28961697,"uuid":"32487876","full_name":"meltmedia/dropwizard-jest","owner":"meltmedia","description":"A Dropwizard Bundle for the Jest Elasticsearch client.","archived":false,"fork":false,"pushed_at":"2017-09-26T22:06:10.000Z","size":58,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-04-17T14:38:57.947Z","etag":null,"topics":["dropwizard","dropwizard-bundle","elasticsearch","java","jest"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meltmedia.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-03-18T22:33:38.000Z","updated_at":"2020-01-04T12:48:14.000Z","dependencies_parsed_at":"2022-08-17T19:15:12.320Z","dependency_job_id":null,"html_url":"https://github.com/meltmedia/dropwizard-jest","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meltmedia%2Fdropwizard-jest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meltmedia%2Fdropwizard-jest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meltmedia%2Fdropwizard-jest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meltmedia%2Fdropwizard-jest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meltmedia","download_url":"https://codeload.github.com/meltmedia/dropwizard-jest/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250338607,"owners_count":21414215,"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":["dropwizard","dropwizard-bundle","elasticsearch","java","jest"],"created_at":"2024-11-08T19:12:34.862Z","updated_at":"2025-04-22T23:23:00.998Z","avatar_url":"https://github.com/meltmedia.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dropwizard Jest\n\nA Dropwizard bundle for the Jest Elasticsearch Client.\n\n[![Build Status](https://travis-ci.org/meltmedia/dropwizard-jest.svg)](https://travis-ci.org/meltmedia/dropwizard-jest)\n\n## Usage\n\n### Maven\n\nReleases of this project are available on Maven Central.  You can include the project with this dependency:\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.meltmedia.dropwizard\u003c/groupId\u003e\n  \u003cartifactId\u003edropwizard-jest\u003c/artifactId\u003e\n  \u003cversion\u003e0.3.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nTo use SNAPSHOTs of this project, you will need to include the sonatype repository in your POM.\n\n```\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003csnapshots\u003e\n        \u003cenabled\u003etrue\u003c/enabled\u003e\n        \u003c/snapshots\u003e\n        \u003cid\u003esonatype-nexus-snapshots\u003c/id\u003e\n        \u003cname\u003eSonatype Nexus Snapshots\u003c/name\u003e\n        \u003curl\u003ehttps://oss.sonatype.org/content/repositories/snapshots\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\nYou will also need to include the project in your dependencies.\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.meltmedia.dropwizard\u003c/groupId\u003e\n  \u003cartifactId\u003edropwizard-jest\u003c/artifactId\u003e\n  \u003cversion\u003e0.4.0-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Java\n\nDefine the JestConfiguraion class somewhere in your applications configuration.\n\n```\nimport com.meltmedia.dropwizard.jest.JestConfiguration;\n\n...\n\n  @JsonProperty\n  protected JestConfiguration elasticsearch;\n\n  public JestConfiguration getElasticsearch() {\n    return jest;\n  }\n```\n\nThen include the bundle in the `initialize` method of your application.\n\n```\nimport com.meltmedia.dropwizard.jest.JestBundle;\n\n...\nprotected JestBundle jestBundle;\n\n@Override\npublic void initialize(Bootstrap\u003cExampleConfiguration\u003e bootstrap) {\n  bootstrap.addBundle(jestBundle = JestBundle.\u003cExampleConfiguration\u003ebuilder()\n    .withConfiguration(ExampleConfiguration::getElasticsearch)\n    .build());\n}\n```\n\nFinally, use the bundle to access the client supplier.\n\n```\n@Override\npublic void run(ExampleConfiguration config, Environment env) throws Exception {\n  JestClient client = jestBundle.getClientSupplier().get();\n}\n```\n\n### Configuration\n\nAdd the jest configuraiton block to your applications config.\n\n```\nelasticsearch:\n  clusterName: elasticsearch\n  servers:\n  - 'http://localhost:9200'\n```\n\n## Building\n\nThis project builds with Java 8 and Maven 3.  After cloning the repo, install the bundle from the root of the project.\n\n```\nmvn clean install\n```\n\n### Integration Tests\n\nRun the build with the `integration-tests` profile.\n\n```\nmvn clean install -P integration-tests\n```\n\n## Contributing\n\nThis project accepts PRs, so feel free to fork the project and send contributions back.\n\n### Formatting\n\nThis project contains formatters to help keep the code base consistent.  The formatter will update Java source files and add headers to other files.  When running the formatter, I suggest the following procedure:\n\n1. Make sure any outstanding stages are staged.  This will prevent the formatter from destroying your code.\n2. Run `mvn format`, this will format the source and add any missing license headers.\n3. If the changes look good and the project still compiles, add the formatting changes to your staged code.\n\nIf things go wrong, you can run `git checkout -- .` to drop the formatting changes. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeltmedia%2Fdropwizard-jest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeltmedia%2Fdropwizard-jest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeltmedia%2Fdropwizard-jest/lists"}