* [ADF-3538] start creating new folder for cloud components * [ADF-3538] added new package to the script and the builds * [ADF-3538] added some more changes to scripts * [ADF-3538] - starting the new package * Add a cloud component as example * Skip the scss style * remove useless codes * Add i18n example * remove useless code * Simplify the hello component Fix the wrong path * add the app-list-cloud-component add the app-details-cloud-component * Fix process service cloud path * Remove useless file * [ADF-3540] Start Task Component APS2 * Generated startTaskCloudModule * Generated start-task-cloud component by cli * Used start-task-cloud in the demo shell * * Added FormModule instead of CoreModule * Added StartTaskTestingModule * Refactored startTaskCloud Component * * Used FlexLayout * Used Keylock api to fetch users * Removed all css * Refactored start-task-cloud component * Removed form field from the starttask form * Created UsedCloud model * Added unit test to the recent changes * Added mock objects * * Added unit test to the startTaskCloud component * * Added documentation about startTaskCLoud component * Changed runtimeBundle to appName * Changed defaultTaskName to name * * Generated people-cloud component * Created initialUserName pipe * * Fetching roles by userId * Filtering Users with required roles * Removed duplicates * Generated initial-user-name pipe * Generated people-cloud component * Created roleCloud module * * Rebased with development branch * Created start-task-cloud-demo component in the demo-shell * * Added unit tests to the start-task-cloud service * Added unit test to the people-cloud component and userInitail pipe * Updated start-task unit tests to the recent changes * Created mock data * * Updated people-cloud component with error message* Updated unit tests * * Included StartTaskCloud component in the demoShell* Created startTask demo component* Added create task button in the tasklist demo component * * Added lodash * * Fixed lodash import * Add the start task into the cloud demo * Fix the lodash import and @type * Show the My task once the task has been created * first change * [ADF-3540] Improved start task component * [ADF-3540] Fixed expression changed error * [ADF-3540] Refactored code * [ADF-3540] Fix lodash import error * [ADF-3540] Remove lodash dependency * [ADF-3540] Refatored code * tmp * [ADF-3540] Show/Hide current user as part of list * [ADF-3340] Assign new task to current user when no assignee selected * [ADF-3540] Rebased the latest changes * [ADF-3540] Refactored code * [ADF-3540] Improved user search logic for people component * [ADF-3540] Moved user services to Core module * [ADF-3540] Modified translation keys * Add process-services-cloud into the license rule * Fix wrong import for prod build * Add license header * Fix unit tests * Fix proxy karma for content * Fix proxy karma for process services * Fix proxy karma for process cloud
ADF Demo Application
Please note that this application is not an official product, but a testing and demo application to showcase complex interactions of ADF components.
Installing
To correctly use this demo check that on your machine you have Node version 5.x.x or higher.
git clone https://github.com/Alfresco/alfresco-ng2-components.git
cd alfresco-ng2-components
npm install
npm start
Proxy settings and CORS
To simplify development and reduce the time to get the application started, we have the following Proxy settings:
- http://localhost:3000/ecm is mapped to http://localhost:8080
- http://localhost:3000/bpm is mapped to http://localhost:9999
The settings above address most common scenarios for running ACS on port 8080 and APS on port 9999 and allow you to skip the CORS configuration.
If you would like to change default proxy settings, please edit the proxy.conf.js
file.
Application settings (server-side)
All server-side application settings are stored in the src/app.config.json. By default the configuration files have the content similar to the following one:
{
"$schema": "../../lib/core/app-config/schema.json",
"ecmHost": "http://{hostname}:{port}",
"bpmHost": "http://{hostname}:{port}",
"application": {
"name": "Alfresco ADF Application"
}
}
Development build
npm start
This command compiles and starts the project in watch mode.
Browser will automatically reload upon changes.
Upon start you can navigate to http://localhost:3000
with your preferred browser.
Important notes
This script is recommended for development environment and not suited for headless servers and network access.
Production build
npm run build
npm run start:dist
This command builds project in production
mode.
All output is placed to dist
folder and can be served to your preferred web server.
You should need no additional files outside the dist
folder.
Development branch build
If you want to run the demo shell with the latest changes from the development branch, use the following command from the /script folder:
npm run start:dev