This is a simple web application that displays a list of employees and allows filtering by department.
- Python 3.6 or higher
- Flask
- SQLite3 (built-in with Python)
- Click (for command-line interface)
-
Create a virtual environment:
python3 -m venv env
-
Activate the virtual environment:
source env/bin/activate
-
Install Flask:
pip install flask
-
Initialize the database:
flask init-db
-
Start the development server:
flask run
The app will be accessible at http://127.0.0.1:5000/
-
Run the tests:
python -m unittest test_filtering.py