| from flask import Flask |
|
|
| def Flask_Instance(): |
| app = Flask(__name__, static_folder='static', template_folder='templates') |
| app.config['SECRET_KEY'] = 'SECRET_KEY' |
|
|
| from FlaskWebApp.App import app_handler |
| app.register_blueprint(app_handler, url_prefix='/') |
|
|
| from FlaskWebApp.APIServices import pwa_api |
| app.register_blueprint(pwa_api, url_prefix='/api/') |
|
|
| from FlaskWebApp.Authentication import authentication |
| app.register_blueprint(authentication, url_prefix='/auth/') |
|
|
| from FlaskWebApp.FileHandler import handler |
| app.register_blueprint(handler, url_prefix='/app/') |
|
|
| return app |
|
|
|
|
| |
| |
| app = Flask_Instance() |
|
|
| if __name__ == '__main__': |
| app.config['SECRET_KEY'] = 'I am the scret' |
| app.run(host='0.0.0.0', port=8000, debug=True) |