Just another example to make a API REST with Flask
To up the virtual machine go to the project folder and type
$ vagrant up
Watch out, the virtual machine get your port 5000.
If you don't have Vagrant you can make a virtual environment with python 3 and execute in local.
$ pip install virtualenv
Go to a folder where you hold your virtual environments
$ virtualenv virtualenvFlask -p /usr/bin/python3
Activate virtual environment
$ source virtualenvFlask/bin/activate
Go to project folder and install the requirements
$ pip install -r requirements.txt
You also need to create the database, if you want to change the name of the database you need to change config.py the SQLALCHEMY_DATABASE_URI var
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'weather.sqlite')
and create the database in our basedir
$ touch weather.sqlite
Make the migrations to create the models in the database
python3 manage.py migrate
If you run the project inside de virtual machine remember to add -h 0.0.0.0 for you can access from outside. By default the port will be 5000, it can be changed adding -p 8080
$ python3 manage.py runserver -h 0.0.0.0