To run or build the app without hassles, make sure that your machine is running Node version 8.2.0 or higher. Install required libraries by using below command.
npm install
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.
npm run build
This command builds project in production
mode.
All output is placed to dist
folder and can be served from your preferred APS web server or from any other web server.
You should need no additional files outside the dist
folder
npm run test-single-run
This command runs unit test cases written in the project.
All server-side application settings are stored in the app.config.json
file.
By default the configuration file has the content similar to the following one:
{
"apiHost": "my-api-host",
"oauth2" : {
"host": "my-auth-api-host",
"authPath": "/my-auth-path/auth/token",
"clientId": "my-client-id",
"secret": ""
},
"logLevel" : "trace"
}
You can change the API end point here and provide the OAuth parameters of your external providers.
For local development:
- run application in minikube
- usual
npm install
thennpm start
For Docker, you can customise using the following environment variables:
- ACT_GATEWAY_URL (defaults to http://localhost:8080)
- ACT_IDM_URL (defaults to http://localhost:8081/openid-connect/token)
- ACT_IDM_CLIENT_ID (defaults to activiti)
For example:
docker build activiti/activiti-cloud-demo-ui .
docker run -p 3000:3000 -d -e "ACT_GATEWAY_URL=http://gw:30080" -e "ACT_IDM_URL=http://idm:30081/auth/token" activiti/activiti-cloud-demo-ui