【文件属性】:
文件名称:akka-http-elasticsearch:这是一个sbt项目,用于显示使用Akka-http查询并将数据发送到elasticsearch的案例以及如何编写单元测试
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-14 12:33:03
elasticsearch scala akka akka-http rest-api
akka-http-elasticsearch
这是一个sbt项目,用于显示使用Akka-http查询数据并将数据发送到elasticsearch的情况以及如何编写单元测试。
入门:
克隆并运行单元测试:
$ git clone git@github.com:techmonad/akka-http-elasticsearch.git
$ cd akka-http-elasticsearch
$ sbt test
Elasticsearch设置
i) Elasticsearch 2.4.4或最新版本并解压缩。
ii)运行以下命令。
$ bin/elasticsearch
运行http服务器:
$ sbt run
使用curl测试http休息点:
添加目录记录
要求:
$ curl -XPOST 'localhost:9000/catalogue/add' -d
【文件预览】:
akka-http-elasticsearch-master
----.gitignore(71B)
----project()
--------build.properties(18B)
----src()
--------main()
--------test()
----README.md(1KB)
----build.sbt(671B)