<filename>users/app.py<gh_stars>1-10
# -*- coding: utf-8 -*-
"""
Create the main application.

Create the main application using the development setting as default also
initialize the database. The database is populated on the endpoint _init_db
that is used with a POST to the proper url and with the header Authorization
Basic base64(username + password)

"""

import os

from flask_cors import CORS

from users.db import DB
from users.instance import create_app

APP = create_app(os.getenv("APP_SETTINGS"), database=DB)

CORS(APP)

DB.init_app(APP)

if __name__ == '__main__':
    APP.run()

<filename>users/app.py<gh_stars>1-10
# -*- coding: utf-8 -*-
"""
Create the main application.

Create the main application using the development setting as default also
initialize the database. The database is populated on the endpoint _init_db
that is used with a POST to the proper url and with the header Authorization
Basic base64(username + password)

"""

import os

from flask_cors import CORS

from users.db import DB
from users.instance import create_app

APP = create_app(os.getenv("APP_SETTINGS"), database=DB)

CORS(APP)

DB.init_app(APP)

if __name__ == '__main__':
    APP.run()

# -*- coding: utf-8 -*- Create the main application.  Create the main application using the development setting as default also initialize the database. The database is populated on the endpoint _init_db that is used with a POST to the proper url and with the header Authorization Basic base64(username + password)