from flask import Flask
from flask_bcrypt import Bcrypt
from flask_cors import CORS
from flask_jwt_extended import JWTManager
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__,
            static_folder = '../frontend/build/static',
            template_folder="../frontend/build"
            )
bcrypt = Bcrypt(app)
CORS(app)
app.config['JWT_SECRET_KEY'] = 'ABCD'
jwt = JWTManager(app)

app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+mysqlconnector://moderator:test12345678@localhost/socialsentiment'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
db = SQLAlchemy(app)
