/service-example

Example service using Flask, SQLAlchemy and Celery

Primary LanguagePython

Flask Example Project

Quick Start

First Steps

$ virtualenv --python=/usr/bin/python3 env
$ source env/bin/activate
$ pip install -r requirements.txt

This service requires running PostgreSQL and RabbitMQ instances.

Set up Migrations

$ alembic upgrade head

Run

Run each in a different terminal window

# worker process
$ python worker.py

# the app
$ python app.py

For running with uWSGI use

uwsgi --socket 0.0.0.0:8000 --protocol=http -w app