Skip to content

himak/flask_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask_project

Config APP

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 APP

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"

About

Learn to programming in Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published