Giter Site home page Giter Site logo

zhaopufeng / activiti-modeling-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from activiti/activiti-modeling-app

0.0 1.0 0.0 19.94 MB

Activiti Modeling Application

License: Apache License 2.0

Dockerfile 0.07% JavaScript 0.45% TypeScript 89.89% HTML 6.52% CSS 0.01% Shell 0.07% SCSS 2.83% Smarty 0.15%

activiti-modeling-app's Introduction

Activiti Modeling Application

master Build Status

Activiti

Introduction

The Alfresco Modeling Application is an extended version of the Activiti Modeling application (AMA), built using Alfresco Application Development Framework (ADF) components.

Installing dependencies

Run the following command to install all third-party dependencies:

npm install

Setting up environment variables

We need to set some environment variable to be able to run the local dev server. In the project root folder, create an .env file (this is gitignored) with the following data:

APP_CONFIG_BPM_HOST="<your-api-url>"
APP_CONFIG_ECM_HOST="<your-api-url>"

# Like: http://my-acm.implementation.com/auth/realms/alfresco
APP_CONFIG_OAUTH2_HOST="<your-api-url/auth>"
# Like: http://my-acm.implementation.com/auth/admin/realms/alfresco
APP_CONFIG_IDENTITY_HOST="<your-api-url/auth/admin>"

APP_CONFIG_AUTH_TYPE="OAUTH"
APP_CONFIG_OAUTH2_CLIENTID="activiti"
APP_CONFIG_OAUTH2_IMPLICIT_FLOW=true
APP_CONFIG_OAUTH2_SILENT_LOGIN=true
APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI="{protocol}//{hostname}{:port}/assets/silent-refresh.html"
APP_CONFIG_OAUTH2_REDIRECT_LOGIN=/
APP_CONFIG_OAUTH2_REDIRECT_LOGOUT=/
APP_CONFIG_NOTIFICATION_LAST=6000
APP_CONFIG_SHOW_NOTIFICATION_HISTORY=true

Running the application

Use one of the following commands to run the application:

# develop server
npm start

# Production server
npm start -- --prod

Building the application

Use one of the following commands to build the application:

# develop build
npm run build

# Production build
npm run build -- --prod

Running unit tests

npm test

Running in Docker

First build the application as above.

Then docker build . -t alfresco/alfresco-apps:latest to build the image

Start with below (substituting with values for your deployment):

docker run -it -e APP_CONFIG_OAUTH2_HOST="http://KEYCLOAKHOST/auth/realms/activiti" -e APP_CONFIG_OAUTH2_CLIENTID="activiti" -e APP_CONFIG_BPM_HOST="http://GATEWAYHOST" -p 8080:80 alfresco/alfresco-modeling-app:latest

If any substitutions don't work then check that the placeholders in docker-entrypoint.sh match src/app.config.json

Browser Support

The application is supported in the following browsers:

Browser Version
Chrome Latest
Safari (OS X) 9.x
Firefox Latest
Edge 13, 14

activiti-modeling-app's People

Contributors

alfresco-build avatar almerico avatar arditdomi avatar bolbosenco avatar bsekula avatar cristinaj avatar davidcanonieto avatar denysvuika avatar dependabot[bot] avatar dhrn avatar eromano avatar gbroadbent avatar georgiana-roman avatar gmandakini avatar magemello avatar marouanbentaleb avatar mauriziovitale avatar mcchrys avatar mteodori avatar pionnegru avatar pmartinezga avatar popovicsandras avatar rbarroso avatar rdiacenco avatar rgherghelas avatar salaboy avatar silviucpopa avatar sivakumar414ram avatar sushmitha-vk avatar vitoalbano avatar

Watchers

 avatar

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.