Skip to content

Latest commit

 

History

History
93 lines (70 loc) · 1.74 KB

File metadata and controls

93 lines (70 loc) · 1.74 KB

Employee Scheduling

Schedule shifts to employees, accounting for employee availability and shift skill requirements.

employee scheduling screenshot

Requirements

Run the application

  1. Git clone the optapy-quickstarts repo and navigate to this directory:

    $ git clone https://github.com/optapy/optapy-quickstarts.git
    $ cd optapy-quickstarts/employee-scheduling
  2. Activate a virtual environment

    $ python -m venv venv
    $ . venv/bin/activate
  3. Install the quickstart requirements to the virtual environment

    $ pip install -r requirements.txt
  4. Run the application

    $ python main.py
  5. Visit http://localhost:5000/static/index.html in your browser.

  6. Click on the Solve button.

Run the tests

  1. Git clone the optapy-quickstarts repo and navigate to this directory:

    $ git clone https://github.com/optapy/optapy-quickstarts.git
    $ cd optapy-quickstarts/employee-scheduling
  2. Activate a virtual environment

    $ python -m venv venv
    $ . venv/bin/activate
  3. Install the quickstart requirements and a testing framework to the virtual environment

    $ pip install -r requirements.txt pytest
  4. Run the tests

    $ python -m pytest tests.py

More information