2022-02-06 14:18:22 +00:00
|
|
|
from config.variables import MAIL_SERVER, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD, MAIL_USE_SSL, MAIL_USE_TLS
|
|
|
|
from flask import Flask
|
|
|
|
from firebase_admin import credentials, initialize_app
|
|
|
|
from api.authentication import authentication
|
2022-02-02 23:06:27 +00:00
|
|
|
|
2022-02-06 14:18:22 +00:00
|
|
|
# Initialize Flask app and register all the endpoints
|
2022-02-02 22:52:07 +00:00
|
|
|
app = Flask(__name__)
|
2022-02-06 14:18:22 +00:00
|
|
|
app.register_blueprint(authentication)
|
2022-02-04 13:15:23 +00:00
|
|
|
|
2022-02-06 14:18:22 +00:00
|
|
|
# Initialize Mail instance
|
|
|
|
app.config['MAIL_SERVER'] = MAIL_SERVER
|
|
|
|
app.config['MAIL_PORT'] = MAIL_PORT
|
|
|
|
app.config['MAIL_USERNAME'] = MAIL_USERNAME
|
|
|
|
app.config['MAIL_PASSWORD'] = MAIL_PASSWORD
|
|
|
|
app.config['MAIL_USE_TLS'] = MAIL_USE_TLS
|
|
|
|
app.config['MAIL_USE_SSL'] = MAIL_USE_SSL
|
2022-02-04 13:15:23 +00:00
|
|
|
|
|
|
|
# Initialize Firebase
|
2022-02-06 14:18:22 +00:00
|
|
|
firebase = initialize_app(credentials.Certificate('firebase-key.json'))
|
2022-02-02 23:19:39 +00:00
|
|
|
|
2022-02-07 13:10:58 +00:00
|
|
|
@app.route('/')
|
|
|
|
def hello():
|
|
|
|
return 'Hello World'
|
|
|
|
|
2022-02-02 22:52:07 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
app.run()
|