/flask-starter

Flask starter app. One-click deploy to Heroku.

Primary LanguagePython

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: