Main application¶
The application can be run in different ways
Within Flask¶
You can move the cstrack_dash folder to the folder where the Flask application is running and then register the app in the Flask application. Here we provide a small example.
from flask import Flask
import config
def create_app():
"""Initialize the core application."""
app = Flask(__name__, instance_relative_config=False)
app.config.from_object('config.ProdConfig')
with app.app_context():
# Include Routes
from .cstrack_dash import dash_cs as dcs
app, server = dcs.create_dashboard(app)
# Register Blueprints
return app