Employee Management application written in Pyhon (Django).
Components:
- admin panel to manage employees' data
- API to list, add and remove employees
Note: to run the app using Docker, head over README-docker.md
Pre-requisites:
- python3 (v3.5)
- python-pip3 (v9.0.1)
pip3 install -r requirements.txt
pip3 install -r requirements-test.txt
Before running any of the following commands, you should cd into employeemanager directory:
cd employeemanager
python3 manage.py migrate
python3 manage.py createsuperuser
coverage run --source='.' employeemanager/manage.py test staff.tests
Note: Run this command only after running the test suite with the command above.
coverage html
# the report will be located at `htmlcov/index.html`
python3 manage.py runserver localhost:8000
To interact with the API, log in at http://localhost:8000/staff/api-auth/ with the superuser created before. After log in, you might be redirected to an interactive interface.
Head over http://localhost:8000/staff/admin/ to access the admin.