Skip to content

Example service using Flask, SQLAlchemy and Celery

Notifications You must be signed in to change notification settings

3DHubs/service-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published