The frontend project of the Industry 4.0 - Model Management Platform. The frontend ist based on Angular and uses the CoreUI admin template that is based on Bootstrap.
Update and upgrade the package manager
sudo apt update
sudo apt upgrade
Add repository for the latest nodejs version and install
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
Install nodejs
sudo apt install nodejs
Clone the repo but make sure a valid ssh key has been set in gitlab or use https
git clone git@gitlab-as.informatik.uni-stuttgart.de:schiercn/EnPro-Industrie_4.0_Model_Management-Frontend.git
go into app's directory
cd EnPro-Industrie_4.0_Model_Management-Frontend
Install defined packages in the package.json file via npm
npm install
The frontend can be run in development mode or in production mode.
Run the web app locally so it is available on http://localhost:4200. It communicates with the local backend on http://localhost:8080 when running with ng serve.
$ ng serve --open --watch
or use the short version
$ ng s --o --watch
Run the web app in production mode so it uses the production backend http://192.168.209.139:8080
npm run start:prod