2016-05-18 11:52:59 +01:00
..
2016-04-19 11:57:05 +01:00
2016-04-19 14:57:31 +01:00
2016-04-26 11:24:47 +01:00
2016-05-13 16:27:32 +01:00
2016-04-22 22:48:14 +01:00
2016-05-13 14:51:53 +01:00
2016-05-18 11:52:59 +01:00
2016-04-27 10:05:21 +01:00
2016-04-06 14:35:46 +01:00
2016-05-17 16:54:31 +01:00

Alfresco Angular 2 Components

alfresco angular2

style

Prerequisites

Docker machine with latest platform-distribution:api-latest image.

docker login dockerreg.alfresco.com
docker pull dockerreg.alfresco.com/platform-distribution:api-latest
docker-compose up

Note: for complete installation on Windows please review the instructions here: Windows installation

to clean up afterwards

docker-compose rm

Configuring development environment

All scripts assume you are at the project root folder

Install symlinks for Alfresco components

On Linux, you may need to use sudo cmd or add user write permissions to /usr/lib/node_modules

ng2-alfresco-core:

npm link ../ng2-components/ng2-alfresco-core

ng2-alfresco-documentlist component:

npm link ../ng2-components/ng2-alfresco-documentlist

ng2-alfresco-login component:

npm link ../ng2-components/ng2-alfresco-login

ng2-alfresco-upload component:

npm link ../ng2-components/ng2-alfresco-upload

dev-platform-js-api client:

npm link ../../dev-platform-js-api

Please refer to this article for more details on npm link.

Building and running

Install dependencies:

cd dev-platform-webcomponents/demo-shell-ng2/
npm install

(Option 1) Fast build and watch for dev purposes:

npm start

(Option 2) Build and watch with Gulp:

npm run build.dev

or

gulp dev

###Multi-language To support a new language you need to create your language file (.json) and add it to i18n/ folder.

{
        "username" : "Username",
        "input-required-message": "Required",
        "input-min-message": "Your username needs to be at least 4 characters.",
        "login-button": "Login"
}

Directory structure:

.
├── i18n/
│   ├── en.json
│   ├── it.json
│   └── fr.json