/alfresco-share-chart-example

Example code showing how to use out-of-the-box Aikau widgets to chart data in a Share dashlet. The blog posts that go along with this code are on ECM Architect at https://ecmarchitect.com/archives/2020/10/14/4492 (Part One) and https://ecmarchitect.com/archives/2020/10/16/4499 (Part Two)

Primary LanguageJavaScript

Alfresco AIO Project - SDK 4.0

This is an All-In-One (AIO) project for Alfresco SDK 4.0 that shows how to use out-of-the-box Aikau widgets to chart data in an Alfresco Share dashlet. The data can come from any source, such as a REST API.

Each step is a tag. Steps 1 through 3 are covered in this blog post while steps 4 through 7 are covered in this blog post.

The final result is a Share dashlet that charts data. The data is sourced from an API that runs external to Alfresco in a Spring Boot application. The application runs in its own Docker container alongside the ACS and Share Docker containers. The API only returns data to authenticated Alfresco users. It does this by validating a ticket that is passed to the API by the code on the Alfresco tier.

Run with ./run.sh build_start or ./run.bat build_start and verify that it

  • Runs Alfresco Content Service (ACS)
  • Runs Alfresco Share
  • Runs Alfresco Search Service (ASS)
  • Runs PostgreSQL database
  • Deploys the JAR assembled modules

All the services of the project are now run as docker containers. The run script offers the next tasks:

  • build_start. Build the whole project, recreate the ACS and Share docker images, start the dockerised environment composed by ACS, Share, ASS and PostgreSQL and tail the logs of all the containers.
  • build_start_it_supported. Build the whole project including dependencies required for IT execution, recreate the ACS and Share docker images, start the dockerised environment composed by ACS, Share, ASS and PostgreSQL and tail the logs of all the containers.
  • start. Start the dockerised environment without building the project and tail the logs of all the containers.
  • stop. Stop the dockerised environment.
  • purge. Stop the dockerised container and delete all the persistent data (docker volumes).
  • tail. Tail the logs of all the containers.
  • reload_share. Build the Share module, recreate the Share docker image and restart the Share container.
  • reload_acs. Build the ACS module, recreate the ACS docker image and restart the ACS container.
  • build_test. Build the whole project, recreate the ACS and Share docker images, start the dockerised environment, execute the integration tests from the integration-tests module and stop the environment.
  • test. Execute the integration tests (the environment must be already started).