Public UI with simple page for search by tokens. UI is very simple sorry for that. This service is based on the spring-boot framework and uses emebedded tomcat to serve static and dynamic content.
- Compile boot jar
./gradlew clean build
java -jar build/libs/*.jar or ./gradlew bootRun
If you need to override post, search host or search port execute export command:
export PORT=7777
export SEARCH_HOST=localhost
export SEARCH_PORT=5555
- simple search engine deployed on heroku https://search-client.herokuapp.com/search
- CI/CD for test and deploy use travis https://travis-ci.org/levik666/search-client
##Note
- before use search need to upload document for demo you could use the following
curl -X POST \
https://levik.herokuapp.com/api/v1/document/ \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-d '{
"key" : "1",
"tokens" : "test rrr"
}'
- Application health
curl -X GET \
http://127.0.0.1:7777/actuator/health \
-H 'accept: application/json' \
-H 'content-type: application/json'
- Aplication main page
curl -X GET http://localhost:7777/