This project is a Node.js application that loads data from a MySQL table or view into an Elasticsearch index. The data is related to logistics and financial information from Africa CDC events, and it is automatically updated every three hours using a cron job.
- Connects to a MySQL database to retrieve data from a table or view.
- Sends data to an Elasticsearch index.
- Automatically updates data every 3 hours using cron jobs.
- Uses environment variables stored in a
.env
file for configuration.
Before running the application, ensure that you have the following installed:
- Node.js (version 12 or above)
- MySQL server
- Elasticsearch server
git clone https://github.com/your-username/your-repo.git
cd your-repo