Prerequisites
Before installing Venzia Datalinks, ensure you have the following prerequisites:Java Development Kit
JDK 11, 17, or later for building the backend module
Maven
Maven 3.x for building the Alfresco module
Node.js
Node.js 18.x for running the frontend and database mock
Docker
Docker and Docker Compose for running Alfresco services
The project uses Alfresco SDK 4.10 and is compatible with Alfresco Content Services 23.4.1.
Project Structure
The Venzia Datalinks project consists of three main folders:Installation Steps
Follow these steps to install all three components of Venzia Datalinks:Install Backend Module (Alfresco Repository)
Navigate to the This compiles the backend module with:
Start the Alfresco environment:This launches a dockerized environment with:Access Alfresco at
venzia-datalink directory and build the project:- Group ID:
es.venzia - Artifact ID:
aqua-datalink - Version:
3.0.0 - Alfresco Platform:
23.4.1
Maven Build Details
Maven Build Details
The build process:
- Compiles the JAR module
- Validates datalink configuration files
- Prepares Docker resources
- Packages the module for deployment
alfresco-remote-api(provided scope)everit-json-schemafor JSON validation- JUnit and Mockito for testing
- Alfresco Content Service
- Alfresco Share (optional)
- Alfresco Search Service
- PostgreSQL database
The environment runs on the following ports:
- ACS:
localhost:8080 - Share:
localhost:8180 - PostgreSQL:
5555 - Debug:
8888
http://localhost:8080/alfresco/ with default credentials:- Username:
admin - Password:
admin
Install Database Mock Server
Navigate to the Start the mock database server:The server will start on
db mock directory and install dependencies:http://localhost:3005 and provides two endpoints:Available Endpoints
Available Endpoints
Public Endpoint (No Authentication):Returns employee data:Private Endpoint (Basic Auth):Credentials:
- Username:
user2019 - Password:
g3n3r4l
Install Alfresco Content App Frontend
Navigate to the Create a Replace
Start the development server:The Alfresco Content App will be available at
app directory:.env file in the app root directory:.env
http://localhost:8080 with your Alfresco repository endpoint if different.Install dependencies:Frontend Dependencies
Frontend Dependencies
Key dependencies include:
- Alfresco ADF:
7.0.0-alpha.7@alfresco/adf-content-services@alfresco/adf-core@alfresco/adf-extensions
- Angular:
16.2.9 - NgRx:
16.3.0(for state management) - Node.js:
18.x - npm:
9.x
http://localhost:4200.The datalinks extension is located in
app/projects/venzia-datalink and is automatically loaded by ACA.Configuration
Datalink Configuration Files
Datalink configurations are stored in:Content Model
The datalink content model is defined in:View Content Model
View Content Model
Docker Commands
Therun.sh (or run.bat on Windows) script in the venzia-datalink directory provides several useful commands:
Available Docker Commands
Available Docker Commands
| Command | Description |
|---|---|
build_start | Build the project, recreate ACS docker image, start environment, and tail logs |
build_start_it_supported | Build with IT dependencies, start environment, and tail logs |
start | Start the dockerised environment without building |
stop | Stop the dockerised environment |
purge | Stop containers and delete all persistent data (volumes) |
tail | Tail the logs of all containers |
reload_acs | Build ACS module, recreate ACS image, and restart ACS container |
build_test | Build, start environment, run integration tests, and stop |
test | Execute integration tests (environment must be running) |
Troubleshooting
Port Already in Use
Port Already in Use
If ports 8080, 8180, 3005, or 4200 are already in use:
- Stop conflicting services
- Or modify the port configurations:
- Backend: Edit
pom.xmlproperties - Database mock: Edit
index.jsport constant - Frontend: Use
npm start -- --port=<new-port>
- Backend: Edit
Maven Build Fails
Maven Build Fails
Common issues:
- Ensure Java 11+ is installed:
java -version - Clear Maven cache:
mvn clean - Check internet connection for dependency downloads
- Verify Maven settings for Alfresco repositories
Docker Services Won't Start
Docker Services Won't Start
- Ensure Docker is running:
docker ps - Check Docker resources (memory, CPU)
- Try purging and restarting:
ACA Can't Connect to Repository
ACA Can't Connect to Repository
- Verify the
.envfile has the correctBASE_URL - Check that Alfresco is running on the specified URL
- Check browser console for CORS errors
- Verify you can access
http://localhost:8080/alfresco/
Datalinks Not Appearing
Datalinks Not Appearing
- Check that datalink JSON files are in
src/main/docker/datalink/ - Verify JSON syntax is valid
- Check Alfresco logs for configuration errors
- Restart ACS container:
./run.sh reload_acs - Verify webscript response:
Next Steps
Quick Start Guide
Learn how to create your first datalink and link document properties to database values
