-
Clone the repository in your local system's directory.
-
cd into that repository
To build the project use the command : mvn clean install
To run the project use the command : mvn spring-boot:run
After the server starts successfully, test the application.
To test the APIs head to Postman:
-
Ingestion API : Send a POST request to the URL: http://127.0.0.1:8181/ingest
-
Search API :
- To get all data from the ElasticSearch Index , send a GET request to the URL : http://127.0.0.1:8181/example
- To query a particular string , send a GET request to the URL : http://127.0.0.1:8181/search/{searchString} Examples:
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Web
- Spring Data Elasticsearch (Access+Driver)
The following guides illustrate how to use some features concretely: