https://github.com/pikulet/fast-flask
template flask app (with postgres + heroku deploy)
https://github.com/pikulet/fast-flask
flask flask-sqlalchemy heroku postgresql-database template-flask
Last synced: about 2 months ago
JSON representation
template flask app (with postgres + heroku deploy)
- Host: GitHub
- URL: https://github.com/pikulet/fast-flask
- Owner: pikulet
- Created: 2020-12-04T04:50:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-16T12:59:08.000Z (over 5 years ago)
- Last Synced: 2025-08-28T08:35:07.069Z (10 months ago)
- Topics: flask, flask-sqlalchemy, heroku, postgresql-database, template-flask
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fast-flask
A flask starter template with postgreSQL database and deployed to Heroku.
## Getting Started (Development)
Clone the repository.
`git clone https://github.com/pikulet/fast-flask`
`cd fast-flask`
Install virtualenv.
`pip3 install virtualenv`
Create a virtual environment.
`virtualenv venv`
Activate the virtual environment.
`source venv\bin\activate`
Install the python modules.
`pip3 install -r requirements.txt`
## Development
Start the database server.
`psql -U -d `
Configure the .env file as needed.
`vim .env`
Run the app.
`flask run`
## Deployment to Heroku
Login to Heroku.
`heroku login`
Create Heroku app.
`heroku apps:create `
Create a PostgreSQL database on Heroku. We use the free plan.
`heroku addons:add heroku-postgresql:hobby-dev`
Configure environment variables for Heroku.
`heroku config:set FLASK_APP=fastflask.py`
Push to Heroku remote.
`git push heroku master`