# import Flask class from the flask module
from flask_bcrypt import Bcrypt
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from os import getenv
from flask_login import LoginManager
# create a new instance of Flask and store it in app 
app = Flask(__name__)
bcrypt = Bcrypt(app)

app.config['SECRET_KEY'] = getenv('SECRET_KEY')
app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URI')
db=SQLAlchemy(app)

login_manager = LoginManager(app)
login_manager.login_view = 'login'

# import the ./application/routes.py file
from application import routes
