Skip to content

A starter pack for a flask based API server with deployment to heroku

License

Notifications You must be signed in to change notification settings

jason-feng/flask-api-starter-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-starter-app

Installation

This microservice is based off of Python 3. If you don't have it:

brew install python3

Now python3 will be an alias to the default python command.

Make sure that you are always running this inside virtualenv

pip3 install virtualenv
virtualenv -p python3 venv
source venv/bin/activate
pip3 install -r requirements.txt

Usage

source .env
flask run

Test

flask test

Setup Travis Deployment to Heroku

https://docs.travis-ci.com/user/deployment/heroku/

Configuring Slack Notifications

https://docs.travis-ci.com/user/notifications#Configuring-slack-notifications

Deployment for heroku servers

gunicorn manage:app

Packages to look at

voluptuous pytest

About

A starter pack for a flask based API server with deployment to heroku

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages