Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.26 KB

README.md

File metadata and controls

53 lines (32 loc) · 1.26 KB

Flask Starter App

A barebones Flask app, which can easily be deployed to Heroku.

This is a template repository, you can generate your own from this.

Adapted from heroku/python-getting-started.

Heroku and Flask

Running Locally

Make sure you have Python 3.x installed locally. To push to Heroku, you'll need to install the Heroku CLI.

(See runtime.txt for the specific Python version. You can change it to your needs)

$ git clone https://github.com/dolugen/flask-starter.git
$ cd flask-starter

$ python3 -m venv env
$ source ./env/bin/activate
$ pip install -r requirements.txt

$ heroku local

Your app should now be running on localhost:5000.

Testing

$ pytest tests.py

Deploying to Heroku

$ heroku create
$ git push heroku master

$ heroku open

or

Deploy

Documentation

For more information about using Python on Heroku, see these Dev Center articles: