The ACT GUI requires npm and yarn as specified in the requirements section.
change to a non privilegded user.
su - act
Checkout software from git to src/act-platform.
mkdir -p ~/src
cd ~/src
git clone https://github.com/mnemonic-no/act-frontend
Configuration is currently done in src/config.js prior to bulding the frontend. The defaults are ok to leave for the basic installation on a single host, but if the platform is installed on another host, you will need to update apiUrl
to the full URL of the Service, e.g. http://act-api.internal.org:8888
.
Install requirements and build.
cd ~/src/act-frontend
yarn --silent install
yarn --silent build
We will need a webserver to host the GUI. We have chosen nginx here, and we also use nginx to proxy requests to the platform.
As root:
curl --silent https://raw.githubusercontent.com/mnemonic-no/act/master/example-config/nginx.conf > /etc/nginx/nginx.conf
curl --silent https://raw.githubusercontent.com/mnemonic-no/act/master/example-config/nginx-act.conf > /etc/nginx/conf.d/nginx-act.conf
Create directory where frontend should be stored:
mkdir -p /usr/share/nginx/frontend
chown -R act:act /usr/share/nginx/frontend
Change back to the act
user.
rsync -r --delete ~/src/act-frontend/build/ /usr/share/nginx/frontend
chmod go+rX /usr/share/nginx/frontend