Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yefim/flask-heroku-sample

Flask Heroku Sample Application
https://github.com/yefim/flask-heroku-sample

flask flask-boilerplate heroku python

Last synced: about 9 hours ago
JSON representation

Flask Heroku Sample Application

Awesome Lists containing this project

README

        

Flask Heroku Sample
====================

A simple Python Flask example application that's ready to run on Heroku.

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

## Development Setup

* `pipenv install`

* `pipenv shell`

* `python app.py`

## Screenshot

![screenshot](https://i.imgur.com/wf74fxY.png)

## Deploy

* `heroku create`

* `heroku addons:create heroku-postgresql:hobby-dev`

* `git push heroku master`

* Note: make sure you run `db.create_all()` to create the tables:
```bash
$ heroku run python
Python 3.6.8 (default, Jan 29 2019, 19:35:16)
>>> from app import db
>>> db.create_all()
>>> exit()
```

## Contributors

* [Yefim](https://twitter.com/yefim)