from cjdb_api.app import make_app
# from model.sqlalchemy_models import CjObjectModel
# from cjdb_api.app.db import session
from cjdb_api.app.resources.querying import type_mapping

def main():
    app = make_app()

    @app.before_first_request
    def before_first_request():
        type_mapping()

    app.run(host="0.0.0.0", port=5000)

if __name__ == "__main__":
    main()

