Code for Software Developer Test - World Food Programme Please make sure you create your own enviroment and install the script as following:
pip install pipenv
pipenv install
Run System
python app.py
The Script has 6 programes ("Functions"):
- 1- Test DB
- 2- Test API
- 3- Test Schedule Function
- 4- Run API without Schedule
- 5- List Needed Cfii Calcualtion Countries
- 6- Update Cfii on Dedicated Database
Ehancements:
- Refactore tre code to manage SQL queries from one function or a package.
- Enable Logging files and functions.
- Create bash file to make it as service.
- Answer the two other questions.