import os

from flask import Flask
from flask_jwt_extended import JWTManager
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow

app = Flask(__name__)

ENV = os.environ.get('ENV', 'development')

# Load the configurations corresponding to the environment
app.config.from_object('configs.{}.{}Config'.format(ENV, ENV.capitalize()))

jwt = JWTManager(app)

db = SQLAlchemy(app)

marshmallow = Marshmallow(app)

from controllers import *
