a Flask app that calculates word-frequency pairs based on the text from a given URL.
Referenced from Flask by Example - Project Setup on Real Python.
At Terminal, input the following codes for initiation each time:
$ source env/bin/activate
$ export APP_SETTINGS="config.DevelopmentConfig"
$ echo "source `which activate.sh`" >> ~/.bashrc
$ source ~/.bashrc
$ export DATABASE_URL="postgresql://localhost/wordcount_dev"
$ python manage.py runserver
Then run on local server (Press CTRL+C to quit).
original webpage
try google
try github