2019-10-06 05:40:02 +00:00
|
|
|
from app import create_app, db
|
2019-10-06 00:49:49 +00:00
|
|
|
|
|
|
|
# Blueprints
|
|
|
|
from api.api import api
|
|
|
|
from auth.auth import auth
|
|
|
|
|
2019-10-06 05:40:02 +00:00
|
|
|
import configuration.models_mount
|
|
|
|
from flask_migrate import Migrate
|
2019-10-06 00:49:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
app = create_app()
|
2019-10-06 05:40:02 +00:00
|
|
|
app.register_blueprint(api)
|
|
|
|
app.register_blueprint(auth)
|
|
|
|
migrate = Migrate(app, db)
|
2019-10-06 00:49:49 +00:00
|
|
|
app.run(port=8000, debug=True)
|