~maelkum/edu-iwa-flask

Introduction to Web application with Python and Flask

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~maelkum/edu-iwa-flask
read/write
git@git.sr.ht:~maelkum/edu-iwa-flask

You can also use your local clone with git send-email.

#Introduction to Web applications

Basics of Web application programming with Python and Flask. Also known as "WPR - Warsztaty Programistyczne".

The VM prepared for this subject is located here. It is a 3 GiB virtual machine image. You should import it into VirtualBox.


#HOWTOs

How to install the venv tool for Python 3 on provided VM:

$ sudo apt-get install python3-venv

How to create a virtual environment:

$ python3 -m venv venv

How to activate a virtual environment:

$ source ./venv/bin/activate

How to install Flask framework:

(venv) $ pip install Flask

How to run your Web application:

(venv) $ ls -1
app.py
templates
(venv) $ export FLASK_ENV=development
(venv) $ export FLASK_APP=pp.py
(venv) $ flask run