Use this information to run the example Hello World transform engine (T-Engine).
-
Clone the alfresco-helloworld-transformer project.
-
Navigate to the
alfresco-helloworld-transformer-enginefolder. -
Build the T-Engine:
mvn clean install -Plocal -
Start the T-Engine:
docker run -d -p 8090:8090 --name alfresco-helloworld-transformer alfresco/alfresco-helloworld-transformer:latest -
Create a test file named
source_file.txtwith the following content:T-Engines -
Open your browser and go to
http://localhost:8090/.For convenience, the Hello World T-Engine provides an HTML form to POST requests to the
/transformendpoint. -
In the HTML Form, choose
source_file.txt. -
Specify a language, where the supported languages are: English, Spanish, German.
-
Click
Transformand then view the downloaded file.
T-Engines provide a /log endpoint out of the box. This shows information about transformations performed by the T-Engine. In addition, the T-Engine server logs can be accessed using the Docker logs command. For example:
docker logs alfresco-helloworld-transformer
See the Docker documentation for more.