/file-to-page

Implementation of a test task on Flask

Primary LanguagePython

Build Status codecov

Implementation of a test task described in task.pdf

Running web application

  1. Use interpreter: python3.6+
  2. Create python virtual environment
  3. Activate python virtual environment
  4. Install third-party libs:
    pip install -r requirements.txt
  5. From the project root:
    python http_file_to_page.py
  6. For production use nginx+gunicorn or something similar

Running tests

  1. Make sure you've done steps 1-4 from Running web application.\
  2. From the project root:
    python -m pytest tests