Create environment and install requirements:
using pipenv:
$ pipenv install
using pip:
$ pip install requirements.txt
Run migrations, this will aso load initial data:
$ python manage.py migrate
Start django service:
$ python manage.py runserver
For adding and modifing data
- jobs: https://127.0.0.1:8000/api/jobs/
- departments: https://127.0.0.1:8000/api/departments/
- employees: https://127.0.0.1:8000/api/employees/
Employees hired by Department and Job by Quarter
https://127.0.0.1:8000/reports/hired_by_quarter
Department with most hires:
https://127.0.0.1:8000/reports/departmet_most_hires
Creating avro backup:
- https://127.0.0.1:8000/backup/employee/
- https://127.0.0.1:8000/backup/department/
- https://127.0.0.1:8000/backup/job/
Restoring latest avro backup: