The postman interface allows the user to post repayment data then receives a json output of computed repayments and a customer summary of the updated credit records
-
Clone the repo and
https://github.com/bencyn/one-acre-farmers.git
andgit checkout develop
-
Create and activate a virtual environment
$ virtualenv env $ source env/bin/activate
-
Install requirements
$ pip install -r requirements.txt
-
Make migrations
$ python manage.py makemigrations
-
Run migrations
$ python manage.py migrate
-
Run api applicaition
$ python manage.py runserver
- a user can view create update or delete customers, seasons, customer summaries, and repayments
- user can also list , post repayment uploads and generate repayment records depending on status of the repayment record (Cascade, Override, overpaid)
- a maximum of one week to cover all the edge cases and write a script to seed to the db
- I managed to implement overpaid and override case scenarios when a user uploads repayments for a specific season and or payment with no autostanding previous credits. This also reflects on the final customer summary
- meet the minimum expectations by fully implementing all the projects deliverables
- priotize tasks by focusing on the less challeging to more challeging ones.This would reduce the time spent to resolve a blocker
- add unit tests and integrate travis circle CI so as to keep track of the test coverage
- refactore code and integerate tools like code climate to help enhance code readability and maintainability
- add more validations check for all model objects
- host the api application to a production server prefarrably apache, nginix or heroku
- implement authenitication by use of auth2 jwt_tokens
- create a user interface that consume the api endpoints