Employee Web App

This is a simple web application that displays a list of employees and allows filtering by department.

Requirements

  • Python 3.6 or higher
  • Flask
  • SQLite3 (built-in with Python)
  • Click (for command-line interface)

Setup

  1. Create a virtual environment:

    python3 -m venv env

  2. Activate the virtual environment:

    source env/bin/activate

  3. Install Flask:

    pip install flask

Running the app

  1. Initialize the database:

    flask init-db

  2. Start the development server:

    flask run

The app will be accessible at http://127.0.0.1:5000/

Running Tests

  1. Run the tests:

    python -m unittest test_filtering.py

Screens