Install virtual machine from vagrant config file:
$ vagrant up
SSH access to virtual machine for terminal (default username and password is "vagrant"):
$ vagrant ssh
Synchronized source files in host machine are located in virtual machine:
$ cd /vagrant/
Create Virtualenv
$ virtualenv venv
Activate VirtualEnv
$ . venv/bin/activate
Install Flask
$ pip install flask
Start Vagrant box
$ vagrant up
$ vagrant ssh
View your IP address
$ ifconfig
Activate VirtualEnv
$ cd /vagrant/
$ . venv/bin/activate
Run App
$ python run.py
or
$ export FLASK_APP=app.py
$ flask run --host 0.0.0.0
Open your favorite browser in your host machine and open URL:
http://YOUR_IP_ADDRESS:5000
now you should see "Hello World"