Flaskr is a classic Python template (based on the Flask framework) to quickly create complete web application. Included Vagrant and Docker makes to configure the deployment environment in a flexible way.
- Clone the repository, copy
.env.example
to.env
anddocker/.env.example
todocker/.env
and modify them as you wish. You can also editdocker/docker-compose.yml
if necessary. - Execute the command
vagrant up
. - Try going to the web address: http://192.168.33.10:8080.
- For authorization, use the next bunch of username/password:
admin/admin
.
Change the TESTING
configuration value to True
in the docker/python/flaskr/config.py
file and execute the following commands:
$ sudo docker-compose run --rm -w /home python python3 -m unittest -v flaskr.tests.functional.test_blog
$ sudo docker-compose run --rm -w /home python python3 -m unittest -v flaskr.tests.integration.test_database