alfresco-ng2-components/PREREQUISITES.md
2016-11-09 10:03:44 +00:00

2.5 KiB

Prerequisites for building and running apps with the Alfresco Application Development Framework

The Angular 2 based application development framework requires the following:

Note: Default username for activiti is "admin@app.activiti.com" and "admin" for Alfresco, and also the default password are different. Change them to be equal.

Verify that you are running at least node v5.x.x and npm 3.x.x by running node -v and npm -v in a terminal/console window. Older versions produce errors.

Installing Node.js

If you don't have Node.js installed then access this page and use the appropriate installer for your OS.

Make sure the Node.js version is > 5:

$ node -v
v5.12.0

Configure Nginx

To correctly configure Nginx use the following file nginx.conf. This will put Activiti, Alfresco and the app dev framework under the same domain.

To make everything work, you have to change the address of the ECM and BPM. In the demo app you can do that clicking on the top left menu and changing the bottom left options: ECM host and BPM host.

This configuration assumes few things:

  • Port mapping:
    • Nginx entry point: 8888
    • Demo Shell: 3000
    • Alfresco: 8080
    • Activiti: 9999

All those values can be modified at their respective location directive on the nginx.conf file.

It also need to be compiled with the Headers More module , which add more control over sending headers to the backend.

If you want to know more on how to install and configure Nginx to work with the Application Development Framework can be found here