AndresMWeber/nomenclate-api

View on GitHub
nomenclateAPI/run.py

Summary

Maintainability
A
0 mins
Test Coverage
from app import app
from db import db

db.init_app(app)


@app.before_first_request
def create_tables():
    db.create_all()

if __name__ == '__main__':
    from db import db

    db.init_app(app)
    app.run(port=5000, debug=True)