Skip to content
Snippets Groups Projects
Select Git revision
  • 693ae2842163ec926d11eae5116e0e48a33101cc
  • main default protected
2 results

21107895_cmt120_cw2

  • Clone with SSH
  • Clone with HTTPS
  • Yukun Ge's avatar
    Yukun Ge authored
    693ae284
    History
    Name Last commit Last update
    blog
    .gitignore
    README.md
    requirements.txt
    wsgi.py

    Flask - blog

    Student Number: 21107895

    CHECKSUM of last commit: a09a17d1

    URL: http://blog-21107895-cmt-120-cw-2-git-blog-21107895.apps.openshift.cs.cf.ac.uk/

    Initial Project Setup Required:

    to create a virtual environment (first run only)

    • on Windows:
    python -m venv venv
    • on *nix:
    python3 -m venv venv

    to activate the environment (every startup)

    • on Windows:
    venv/Scripts/activate
    • on *nix:
    source venv/bin/activate

    Project Dependencies

    • to install a particular library:
    pip install <LIBRARY>

        e.g.: pip install flask

    • to install all dependencies recursively from requirements.txt file:
    pip install -r requirements.txt
    • to see all installed dependencies in the console:
    pip freeze
    • to save the project dependencies in requirements.txt file:
    pip freeze > requirements.txt

    Running the project

    • to run (after venv/Scripts/activate and specifying FLASK_APP=...; as well FLASK_ENV=development - if desired)
    flask run