virtualenv venv
source env/bin/activate
pip install -r requirements.txt
MYSQL_USER=<your_Postgres_user>
MYSQL_PASSWORD=<your_Postgresuser_password>
MYSQL_SERVER=<your_Postgres_server>
MYSQL_DATABASE=<your_Postgres_database_name>
You can set these in .env file as the project uses dotenv module to load environment variables
flask db upgrade
python -m department_app/database/populate.py
python -m flask run
localhost:5000/api/departments
localhost:5000/api/department/<uuid>
localhost:5000/api/employees
localhost:5000/api/employees/search/date=<YYYY-MM-DD>
localhost:5000/api/employees/search/start_date=<YYYY-MM-DD>&end_date=<YYYY-MM-DD>
localhost:5000/api/employee/<uuid>
localhost:5000/
localhost:5000/departments
localhost:5000/department/add
localhost:5000/department/edit
localhost:5000/department/edit/<uuid>
localhost:5000/department/delete
localhost:5000/department/delete/<uuid>
localhost:5000/employees
localhost:5000/employee/add
localhost:5000/employee/edit
localhost:5000/employee/edit/<uuid>
localhost:5000/employee/delete
localhost:5000/employee/delete/<uuid>