rashkur / service-example

Example service using Flask, SQLAlchemy and Celery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Example service using Flask, SQLAlchemy and Celery


Languages

Language:Python 73.7%Language:HTML 18.0%Language:Mako 6.2%Language:JavaScript 1.2%Language:CSS 1.0%