Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuvadm/heroku-python-skeleton
A skeleton repository for Heroku-deployed Python applications
https://github.com/yuvadm/heroku-python-skeleton
flask heroku postgresql python rest-api sqlalchemy
Last synced: 17 days ago
JSON representation
A skeleton repository for Heroku-deployed Python applications
- Host: GitHub
- URL: https://github.com/yuvadm/heroku-python-skeleton
- Owner: yuvadm
- Created: 2012-08-16T16:17:37.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T22:28:31.000Z (almost 4 years ago)
- Last Synced: 2024-04-09T23:10:58.141Z (9 months ago)
- Topics: flask, heroku, postgresql, python, rest-api, sqlalchemy
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 52
- Watchers: 4
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Heroku Python Skeleton
This repository has all the base files ready for deploying a Python application on Heroku. It includes the following features:
- Flask HTTP application
- SQLAlchemy model that binds to a Heroku Postgres database
- RESTful API based on Flask-RESTful and the Marshmallow serialization framework## Usage
### Initial
```bash
$ git clone https://github.com/yuvadm/heroku-python-skeleton.git
$ cd heroku-python-skeleton
$ heroku create
$ git push heroku master
```### Database
```bash
$ heroku addons:create heroku-postgresql:hobby-dev
$ heroku run python
```and in the Python REPL:
```python
>>> from app import db
>>> db.create_all()
```For a detailed introduction see [http://blog.y3xz.com/blog/2012/08/16/flask-and-postgresql-on-heroku/](http://blog.y3xz.com/blog/2012/08/16/flask-and-postgresql-on-heroku/).