Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 897 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 897 Bytes

ZIO Elasticsearch Example Application

This application represents an example of usage zio-elasticsearch library for Elasticsearch 7.x.

Running

  • Run the Elasticsearch 7.x service (one can be found as part of the docker-compose.yml file in the root of this repository)
  • Start the application by running the following command:
      ./sbt "~example/reStart"
  • Check whether the application is running here
  • Explore endpoints using Postman collection (zio-elasticsearch-example.postman_collection.json)

Description

On the application startup - a "repositories" index will be deleted, and immediately re-created with the mapping definition given in the resources/mapping.json file.

After successfully starting the application, you can test the exposed ZIO Elasticsearch library's API through exposed HTTP endpoints.