import os

from flask import Flask

from views import views

def create_app():
    app = Flask(__name__)
    app.register_blueprint(views)

    return app

if __name__ == "__main__":
    app = create_app()
    app.run(port=int(os.environ.get('FLASK_PORT', 5000)))