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 upgradeAdd 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 nodejsClone the repo but make sure a valid ssh key has been set in gitlab or use https
git clone [email protected]:schiercn/EnPro-Industrie_4.0_Model_Management-Frontend.gitgo into app's directory
cd EnPro-Industrie_4.0_Model_Management-FrontendInstall defined packages in the package.json file via npm
npm installThe 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 --watchor use the short version
$ ng s --o --watchRun the web app in production mode so it uses the production backend http://192.168.209.139:8080
npm run start:prod