duck-booking-tool/app.py
2016-10-28 04:17:03 +02:00

20 lines
514 B
Python

#!/usr/bin/env python3
import os
import connexion
import sqlalchemy
from sqlalchemy import create_engine, Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine( os.environ.get( 'DATABASE_URL', 'sqlite:///:memory:' ), echo=True )
app = connexion.App(__name__, specification_dir='./swagger/')
app.add_api('swagger.yaml',
arguments={
'title': 'Rubber Duck Booking Tool'
})
if __name__ == '__main__':
app.run(port=8080)