How materna-se/declab works
Project Type and Purpose
• This is a full-stack web application (“declab”) for authoring, executing and testing DMN (Decision Model and Notation) models.
• The client is a Nuxt/Vue.js SPA with builders, playground, test-execution and result-visualization UIs.
• The server is a Java 11/Maven web application (WAR) running on WildFly/Jetty, exposing REST endpoints and WebSockets to manage workspaces, models, inputs, outputs, tests, challenges and DMN execution via Drools.
File-Structure Analysis
Top level:
• client/ – Vue/Nuxt source, components, pages, Vuex store, build config
• server/ – Maven project, Java packages for servlets, helpers, persistence, WebSockets
• build/, Dockerfile, kubernetes.yaml – CI/CD, containerization, deployment manifests
• docs/, README.md – documentation, architecture overview screenshots
• .circleci/, .gitignore, LICENSE etc. – CI config, licensing
Key server modules:
• servlets/… – REST API controllers following resource-per-servlet (ModelServlet, InputServlet, TestServlet, etc.)
• filters/… – security filters (CSRF, ReadAccess, WriteAccess)
• persistence/… – filesystem based “WorkspaceManager”, “PersistenceFileManager”
• sockets/… – WebSocket endpoint (“MainSocket”) and session management
• drools/helpers – integration with the Drools DMN engine
• resources/logback.xml – logging config
Architectural Insights from README
• SPA communicates with server at path /declab-{version}/api or via WebSocket for live FEEL playground.
• Static client built into server/src/main/webapp for production deployment inside the WAR.
• Dockerfile to containerize the combined WAR + static files.
• kubernetes.yaml provided for container orchestration.