A simple flask demo with static files and templates.
Requires flask. Install using pip, prefereably in a virtual env.
> pip install flask
To run type run_mywebapp.bat
(or ./run_mywebapp.sh on Mac)
> cd flask_demo
> set FLASK_APP=mywebapp
> set FLASK_ENV=development
> flask run
A first iteration of a music streaming app.
To run type run_musicplayer.bat
(or ./run_musicplayer.sh on Mac)
> cd flask_demo
> set FLASK_APP=musicplayer
> set FLASK_ENV=development
> flask run
This app uses the Bootstrap libraries for the front-end. See
If you want to learn how to build your own web sites and web apps using Flask, follow the tutorial here -
https://flask.palletsprojects.com/en/2.0.x/tutorial/
The tutorial instructions install the tutorial application in a virtual environment as a module called flaskr, so you must first create a virtual environment.
If you get errors when following the install instructions you might need to install wheel in your virtual env first.
pip install wheel
If you just want to run the tutorial example, the code is included here in the tutorial folder.
> cd tutorial
> set FLASK_APP=flaskr
> set FLASK_ENV=development
> flask init-db
> flask run
https://github.com/pallets/flask/tree/2.0.3/examples/tutorial