A Weppy application.
hello world python web application
Requirements:
- Python 3.6.1+
For virtualenv setup and activation:
virtualenv --python=$(which python3.6) env
. ./env/bin/activate
pip install -r requirements.txt
python run.py
Otherwise:
pip install -r requirements.txt
python run.py
*If pip fails on ubuntu, try sudo apt-get install libyaml-dev libyaml-python3.6-dev
To make your application available at http://localhost/
:
docker build -t py-web .
docker run -it -p 80:8000 --rm --name py-web py-web
Running in development mode will enable debug pages and automatically create test users in multiple states. Test users will be removed from the DB after stopping.
To start the app in development mode, do:
python run.py --dev
See py-web/cli.py
for cli commands.
py.test -v -s --cov-report term-missing --cov=py-web -r w tests
MIT 2017 selvendiranj