How catasto-open/mapstorecatasto works
Main system components
• Frontend (Extension/UI): Represented primarily by the “js/extension” directory, which includes actions, components (e.g., panels, search components, maps), containers, selectors, and utilities. This is where the interactive map interface is implemented, along with user interactions (layer management, search, and visualization).
• Backend Services: Found under “backend” and “web”. The “backend” folder contains Java files, resources, and tests (with Maven “pom.xml” files) – likely providing API endpoints for retrieving and processing cadastral data. The “web” folder includes web-specific configurations (such as “web.xml”, dispatcher-servlet.xml, and additional properties) that integrate the backend into a deployable web application.
• Build and Deployment: Include build scripts such as “build.sh” and the “build” folder (with webpack and extension scripts) as well as Dockerfiles and the “docker” directory, which contain deployment configurations.
• Configuration and Assets: Note the “configs” directory holding various JSON configuration files (defining endpoints, plugin configurations, etc.) and the “assets” directory for translations and static JSON data.
• Integration with External Systems: The README notes integration with a separate “catasto-db” (via geoserver endpoints) – include an external service or data source component.
Relationships and interactions
• A link from the Backend to external data sources (like “catasto-db” accessed via geoserver endpoints) as configured in “config/localconfig.json”.
• How build and deployment components (Docker, Webpack, Maven) feed into the delivery of the final application.
• Configuration management (with files in “configs” and properties files in “docker” and “web/src/main/resources”) as central to connecting the various components.
Important architectural patterns and design principles
• Modularization: The clear separation between frontend extension modules (organized into subdirectories like “actions”, “components”, “epics”, “reducers”) and backend Java code follows a modular design principle.
• MVC/Redux-like Structure: The frontend structure suggests a React-Redux (or similar unidirectional data flow) pattern where actions, reducers, and selectors are neatly separated.
• Microservices/Integration: Although not strictly broken into microservices, the backend and the external service (catasto-db/geoserver) communicate in a loosely coupled manner.
• Containerization: Docker files and deployment scripts indicate a modern container-based deployment setup.
Relevant technologies and frameworks
• Frontend: JavaScript (with React, inferred from the use of JSX files) and Redux-like state management.
• Backend: Java, likely using frameworks such as Spring (implied by “applicationContext.xml”, “dispatcher-servlet.xml”) for web services.
• Build Tools: Maven (pom.xml files) for Java modules and Webpack for JavaScript bundling.
• Docker: For containerization and deployment.
• MapStore2 Integration: The project extends MapStore2, which is the foundation for the interactive map.