Skip to content

Latest commit

 

History

History
63 lines (50 loc) · 1.85 KB

README.md

File metadata and controls

63 lines (50 loc) · 1.85 KB

MMP Industry 4.0 - Model Management Platform - Frontend

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.

Demo Video

Watch the video

Install

Prerequisites

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 repository

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

Install required packages

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

Run

The frontend can be run in development mode or in production mode.

Run in development 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 in production mode

Run the web app in production mode so it uses the production backend http://192.168.209.139:8080

npm run start:prod