virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
export MYSQL_USER=<your_mysql_user>
export MYSQL_PASSWORD=<your_mysql_user_password>
export MYSQL_SERVER=<your_mysql_server>
export MYSQL_DATABASE=<your_mysql_database_name>
flask db upgrade
python -m flask run
or
gunicorn -w 4 app:app
localhost:5000/api/departments
localhost:5000/api/departments/<int:department_id>
localhost:5000/api/employee/<int:employee_id>
localhost:5000/api/department/<int:department_id>/employee
localhost:5000/api/employee/search
localhost:5000/api/employee/search?date_of_birth=<YYYY-MM-DD>
localhost:5000/api/employee/search?date_from=<YYYY-MM-DD>&date_to=<YYYY-MM-DD>
localhost:5000/swagger
localhost:5000/
localhost:5000/department/add
localhost:5000/department/edit/<int:department_id>
localhost:5000/department/<int:department_id>/employees
localhost:5000/add-employee/<int:department_id>
localhost:5000/edit-employee/<int:employee_id>
localhost:5000/search-employee