For building project, you will only need Node.js installed on your environement.
Make sure there is a minimum version of Node and NPM
$ node --version
v10.15.0
$ npm --version
6.4.1
$ git clone [email protected]:SuperbCoders/moos-absolut-SPA.git
$ cd moos-agent-ui
$ npm install
Copy public/contentConstants.sample.json
to contentConstants.json
then edit it with the url where you have setup:
- Copyright, Phone, E-Mail texts on site
- tasks statuses (if need)
authType
need write one ofkeycloak
orstandard
keycloak
- if need authorize user by Keycloak serverstandard
- if need authorize user by session_id in/api/
formType
need write one ofcamunda
orcustom
camunda
- if need use camunda formcustom
- if need use forms from project
File contentConstants.json
available for edit after build app in build folder, but new build rewrite this file from public/contentConstants.json
contents.
Copy public/keycloak.sample.json
to keycloak.json
then edit it for contain real keycloak settings.
File keycloak.json
available for edit after build app in build folder, but new build rewrite this file from public/keycloak.json
contents.
/build - compiled production version of app
/public - public files that coping in build folder without changing
/src - app source files
$ npm start
$ npm run build
Make sure that nginx is correctly configured to redirect the required server_name to the folder moos-absolut-SPA/build
Make sure spa configured to proxy all requests to common-ui-api:
location /spa/api/ {
proxy_pass http://common-ui-api.url/;
}