package dev.lions.unionflow.client;

import io.quarkus.runtime.Quarkus;
import io.quarkus.runtime.QuarkusApplication;
import io.quarkus.runtime.annotations.QuarkusMain;
import jakarta.enterprise.context.ApplicationScoped;
import org.jboss.logging.Logger;

/**
 * Application principale UnionFlow Client
 * 
 * @author Lions Dev Team
 * @version 1.0.0
 */
@QuarkusMain
@ApplicationScoped
public class UnionFlowClientApplication implements QuarkusApplication {
    
    private static final Logger LOG = Logger.getLogger(UnionFlowClientApplication.class);
    
    public static void main(String... args) {
        Quarkus.run(UnionFlowClientApplication.class, args);
    }
    
    @Override
    public int run(String... args) throws Exception {
        LOG.info("UnionFlow Client démarré avec succès!");
        LOG.info("Interface web disponible sur http://localhost:8082");
        LOG.info("Page d'accueil sur http://localhost:8082/index.xhtml");
        
        Quarkus.waitForExit();
        return 0;
    }
}