JordiSM / flask-mysql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preparation

  1. sudo apt install python3-pip
  2. sudo apt install python3-venv

Creating virtual environment

  1. python3 -m venv ./venv

Activating environment

  1. source ./venv/bin/activate

Installing necesary packages

  1. pip install flask (pip install requirements)

Launching app

Option 1:

Preconfiguration of flask

  1. export FLASK_APP=flaskpage.py
  2. export FLASK_DEBUG=1

Starting app

  1. flask run

Option 2:

By running it with python

  1. if name == 'main': app.run(debug=True)
  2. python flaskpage.py

About


Languages

Language:HTML 82.4%Language:Python 17.6%