This repository is destinated to solve the data engineer challenge.
Use the package manager pip to install the packages.
pip install -r requirements.txt
First start the REST API by running the following command
python src\app.py
And then run, in another command line:
python src\csvToJSONConverter.py
To run the third point, start the REST API by running the following command
python src\app.py
And then run, in another command line:
python src\backupToAVRO.py
At this point, a GET of the entire table is performed, to later transform it into an .AVRO file and save it in the /backup folder
To run the last point, start the REST API by running the following command
python src\app.py
And then run, in another command line:
python src\restoreTable.py
At this point, each .AVRO file made in the previous point is imported, then it is transformed into a python dictionary and finally saved again in the database
First start the REST API by running the following command
python src\app.py
And then run, in the navigator the follow url: /employees-jobs-quarters