2023-12-31 08:35:31 +01:00
|
|
|
# initial commit
|
2023-12-31 07:36:28 +01:00
|
|
|
from dash import Dash
|
|
|
|
from dash_bootstrap_components.themes import BOOTSTRAP
|
|
|
|
|
|
|
|
from src.components.layout import create_layout
|
|
|
|
from src.data.loader_gz import load_transaction_data
|
|
|
|
from json import load
|
|
|
|
|
|
|
|
config_file = "./config.json"
|
|
|
|
with open(config_file) as config_f:
|
|
|
|
config=load(config_f)
|
|
|
|
|
|
|
|
def main() -> None:
|
|
|
|
|
|
|
|
# load the data and create the data manager
|
|
|
|
data = load_transaction_data(config["DATA_PATH"])
|
|
|
|
|
|
|
|
app = Dash(external_stylesheets=[BOOTSTRAP])
|
|
|
|
app.title = "Reliability Dashboard"
|
|
|
|
app.layout = create_layout(app, data)
|
|
|
|
app.run()
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|