Giter Club home page Giter Club logo

adf-examples's Introduction

Application Development Framework examples

This repository contains a collection of examples of simple (and less simple) projects developed using the Alfresco Application Developer Framework.

Goal of the ADF examples

The goal of the repository is to provide working source code as an example, and some useful components to be used as inspiration for your use cases and custom applications. The idea is to enable developers, sharing some best practices and useful tips to reduce the learning curve and the time to market of your artifacts. We are committed to increase this collection of projects in number and complexity during the near future, to give you the a practical place where to find working examples to start (or experiment) your development.

Introduction to the Alfresco ADF

Before downloading and trying to use the ADF examples, be sure you covered the basis of Angular2 and Alfresco Application Developer Framework. For an introduction to the Alfresco ADF, you can refer to the Getting Started page of the Alfresco Community Portal. For further details about the Alfresco ADF, below you can find some useful links.

About the structure of the repository

For a better understanding, the structure of the repository is organized by Alfresco ADF version. Each example is organized as an independent project and named as much clear as possible, to introduce the main topic covered. Each project contains at least a README file introducing the use case, the environment, the used versions and prerequisites in general. Below an example of repository structure, representing the two levels: the Alfresco ADF version and the projects.

|-- adf-examples
    |-- ADF X.X.X
        |-- Project 1
        |-- Project 2
        |-- ...
    |-- ADF Y.Y.Y
        |-- Project 3
        |-- Project 4
        |-- ...
    |-- README.md
    |-- ...

To view the full list of examples related to an Alfresco ADF version, click on the folder named like the ADF version.

Where to start

To start using the Alfresco ADF examples, you simply need to follow the tasks listed below.

  • Clone the repository. Opening a terminal and running the command below.
git clone https://github.com/Alfresco/adf-examples
  • Checking the projects hosted into it. After the clone, a folder adf-example will be created into your file system. Dive into the folder structure and choose you preferred project to run.

For further details about each project, check the README file containing the description of the use case, the prerequisites and how to make it work.

Improving the collection of examples

We are always committed to enable developers improving the collection of ADF examples, but no guarantee can be given for a regular extension of the existing or new examples. If you cannot find your specific use case, please let us know raising a new issue or commenting an existing one. Before opening a new issue, please always check if one similar to your use case already exists.

How to receive support

If one (or more) of the examples don't work for you, you'd probably need support. This is not the right place to ask (and receive) support because exists a better place for it:

Join the chat at https://gitter.im/Alfresco/alfresco-ng2-components

Feel free to ask there.

License and disclaimer

Copyright (C) 2017 Alfresco Software Limited

Alfresco Software Limited licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

adf-examples's People

Contributors

eromano avatar fcorti avatar magemello avatar mauriziovitale avatar popovicsandras avatar vitoalbano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adf-examples's Issues

User unable to see involved task

Hello,

I have created one simple process in that two user task am using first task is to fill the form and the second task is to display the form. The first task has been assigned to user1. I am using this ADF2.0.0 project, if user1 logs in then he clicks on the my task, user1 doesn't see any task which is assigned to him(involved task).

Here I have attached my project kindly anyone help me.

Thanks
Amruta Wandakar
TestApp.zip

IE 11 DocumentListComponent issue

Hi,

In IE 11 when I double click on node in Document List I get "ERROR TypeError: Object doesn't support this action". Works good in chrome. Please suggest a resolution.

Thanks.

Failing to compile the content-service-documtlist-demo

Below the error after npm start.

  [360] ./src/polyfills.ts 375 bytes {2} [built]
  [369] ./~/core-js/es6/index.js 5.88 kB {2} [built]
  [370] ./~/core-js/es7/reflect.js 510 bytes {2} [built]
  [531] ./~/intl/index.js 574 bytes {2} [built]
  [532] ./~/intl/lib/core.js 173 kB {2} [built]
  [538] ./~/punycode/punycode.js 14.7 kB {2} [built]
  [541] ./~/querystring-es3/index.js 127 bytes {2} [built]
  [813] ./~/strip-ansi/index.js 161 bytes {2} [built]
  [814] ./~/url/url.js 23.3 kB {2} [built]
  [816] (webpack)-dev-server/client/overlay.js 3.59 kB {2} [built]
  [817] (webpack)-dev-server/client/socket.js 856 bytes {2} [built]
  [819] (webpack)/hot/emitter.js 77 bytes {2} [built]
  [820] ./~/zone.js/dist/zone.js 78.5 kB {2} [built]
  [823] multi (webpack)-dev-server/client?http://0.0.0.0:3000 ./src/polyfills.ts 40 bytes {2} [built]
     + 331 hidden modules

ERROR in ./src/polyfills.ts
Module not found: Error: Can't resolve 'element.scrollintoviewifneeded-polyfill' in '/home/adf/Desktop/content-service-documentlist-demo/src'
 @ ./src/polyfills.ts 7:0-50
 @ multi (webpack)-dev-server/client?http://0.0.0.0:3000 ./src/polyfills.ts

ERROR in ./src/vendor.ts
Module not found: Error: Can't resolve 'dialog-polyfill/dialog-polyfill' in '/home/adf/Desktop/content-service-documentlist-demo/src'
 @ ./src/vendor.ts 17:0-56
 @ multi (webpack)-dev-server/client?http://0.0.0.0:3000 ./src/vendor.ts

ERROR in ./src/vendor.ts
Module not found: Error: Can't resolve 'dialog-polyfill/dialog-polyfill.css' in '/home/adf/Desktop/content-service-documentlist-demo/src'
 @ ./src/vendor.ts 18:0-46
 @ multi (webpack)-dev-server/client?http://0.0.0.0:3000 ./src/vendor.ts
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 339 bytes [entry] [rendered]
        [0] ./~/html-webpack-plugin/lib/loader.js!./index.html 339 bytes {0} [built]
Child extract-text-webpack-plugin:
    chunk    {0} extract-text-webpack-plugin-output-filename 322 kB [entry] [rendered]
        [0] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
        [1] ./~/css-loader?sourceMap!./~/material-design-lite/dist/material.orange-blue.min.css 321 kB {0} [built]
Child extract-text-webpack-plugin:
    chunk    {0} extract-text-webpack-plugin-output-filename 56.6 kB [entry] [rendered]
        [0] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
        [1] ./~/css-loader?sourceMap!./~/@angular/material/prebuilt-themes/indigo-pink.css 55.1 kB {0} [built]
Child extract-text-webpack-plugin:
    chunk    {0} extract-text-webpack-plugin-output-filename 4.83 kB [entry] [rendered]
        [0] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
        [1] ./~/material-design-icons/iconfont/MaterialIcons-Regular.eot 111 bytes {0} [built]
        [2] ./~/material-design-icons/iconfont/MaterialIcons-Regular.ttf 111 bytes {0} [built]
        [3] ./~/material-design-icons/iconfont/MaterialIcons-Regular.woff 112 bytes {0} [built]
        [4] ./~/material-design-icons/iconfont/MaterialIcons-Regular.woff2 113 bytes {0} [built]
        [5] ./~/css-loader?sourceMap!./~/material-design-icons/iconfont/material-icons.css 2.87 kB {0} [built]
webpack: Failed to compile.

adf-login-demo exception at startup

`adf@adf:~/Desktop/adf-login-demo$ npm start

[email protected] start /home/adf/Desktop/adf-login-demo
npm run webpack-dev-server -- --config config/webpack.prod.js --progress --content-base app/

[email protected] webpack-dev-server /home/adf/Desktop/adf-login-demo
node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js "--config" "config/webpack.prod.js" "--progress" "--content-base" "app/"

/home/adf/Desktop/adf-login-demo/node_modules/webpack-dev-server/bin/webpack-dev-server.js:366
throw e;
^

TypeError: arguments[i].apply is not a function
at Compiler.apply (/home/adf/Desktop/adf-login-demo/node_modules/tapable/lib/Tapable.js:306:16)
at webpack (/home/adf/Desktop/adf-login-demo/node_modules/webpack/lib/webpack.js:32:19)
at startDevServer (/home/adf/Desktop/adf-login-demo/node_modules/webpack-dev-server/bin/webpack-dev-server.js:360:14)
at processOptions (/home/adf/Desktop/adf-login-demo/node_modules/webpack-dev-server/bin/webpack-dev-server.js:317:3)
at Object. (/home/adf/Desktop/adf-login-demo/node_modules/webpack-dev-server/bin/webpack-dev-server.js:441:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:508:3

npm ERR! Linux 4.4.0-83-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "webpack-dev-server" "--" "--config" "config/webpack.prod.js" "--progress" "--content-base" "app/"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] webpack-dev-server: node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js "--config" "config/webpack.prod.js" "--progress" "--content-base" "app/"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] webpack-dev-server script 'node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js "--config" "config/webpack.prod.js" "--progress" "--content-base" "app/"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-alfresco-login-demo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js "--config" "config/webpack.prod.js" "--progress" "--content-base" "app/"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-alfresco-login-demo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-alfresco-login-demo
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/adf/Desktop/adf-login-demo/npm-debug.log

npm ERR! Linux 4.4.0-83-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: npm run webpack-dev-server -- --config config/webpack.prod.js --progress --content-base app/
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'npm run webpack-dev-server -- --config config/webpack.prod.js --progress --content-base app/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-alfresco-login-demo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run webpack-dev-server -- --config config/webpack.prod.js --progress --content-base app/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-alfresco-login-demo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-alfresco-login-demo
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/adf/Desktop/adf-login-demo/npm-debug.log
`

Groovy script execution error

Hi, I have setup insurance-policy-and-claim-center-app as per the instructions provide in the project. When I am trying to create a new policy, Activiti server is throwing groovy script error. PFA the error log of the same. Please suggest if I am missing any configurations.
Thanks,
Saikrishna
error.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.