This project comprises two primary components:
- A Python administration script responsible for populating data into an Elasticsearch index.
- A Spring Boot application featuring exposed APIs designed to facilitate querying Elasticsearch based on user-provided request parameters.
- Run the python script (worker.py) which is used to load data into elastic search index.
- Provide the follwing environment variables before running the python script.
| ENVIRONMENT VARIABLE | VALUE |
|---|---|
| ELASTICSEARCH_HOST | <HOST> |
| ELASTICSEARCH_API_KEY | <API_KEY> |
| INDEX_NAME | <INDEX> |
| CSV_FILE_PATH | <FILE_PATH> |
- Execute the worker file.
- Open the project RestClient in the IDE of your choice.
- Update the application.properties file with required values.
| ENVIRONMENT VARIABLE | VALUE |
|---|---|
| elasticsearch.serverUrl | <YOUR_ELASTICSEARCH_URL> |
| elasticsearch.apiKey | <YOUR_ELASTICSEARCH_API_KEY> |
- Run the main file of the SpringBoot Application. The Backend service will be up and running.