GithubHelp home page GithubHelp logo

jg-cau / titan-ccp-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cau-se/titan-ccp-frontend

0.0 0.0 1.0 3.51 MB

The visualization frontend of the Titan Control Center Prototype with KSQL

License: Apache License 2.0

Dockerfile 0.52% HTML 0.95% TypeScript 10.45% JavaScript 29.39% Vue 58.42% Shell 0.27%

titan-ccp-frontend's Introduction

Titan Control Center - Visualization Frontend (My variant)

The Titan Control Center is a scalable monitoring infrastructure for Industrial DevOps. It allows to monitor, analyze and visualize the electrical power consumption of devices and machines in industrial production environments.

This repository contains the visualization frontend of the Titan Control Center. It is a single-page application written in Typescript and Vue.js.

Developing

To work on this project, clone this repository and execute:

npm install

In order to start a development server running on http://localhost:8070 execute:

npm run dev

A good tool for working on this software is Visual Studio Code. In order to get things like autocompletion for .vue files, you need to install the vetur plugin. When you open a vue file the first time, Visual Studio Code suggests to install this plugin. Further, the ESLint plugin should be installed to get notifactions on violated coding guideline already during developing.

The visualization frontend highly depends on external data sources, more specifically, the other Titan CCP microservices. In order to let the frontend access them, you need to start a reverse proxy that redirects all calls to the other services. We provide such a reverse proxy as part of the frontend, which can be started be started via:

docker run --rm --name titan-ccp-frontend --network host -e "CONFIGURATION_BASE_URL=http://<host>:<port>" -e "HISTORY_BASE_URL=http://<host>:<port>" -e "STATS_BASE_URL=http://<host>:<port>" -e "KSQL_SERVER_BASE_URL=http://<host>:<port>" -d industrialdevops/titan-ccp-frontend

Note: The application intendet for development is running at port 8070, whereas a the application running at port 8080 is the compiled one running in the Docker container. If you want to build this reverse proxy by yourself, follow the steps described below.

Building

To build the visualization frontend for use in production execute:

npm install
npm run build

This will create some files in dist. These files along with the index.html can then be copied on a web server for productive usage.

This repository also contains a Dockerfile. Adjust the nginx.conf file accordingly and run docker build -t titan-ccp-frontend . to create an image from it (after building it with npm).

titan-ccp-frontend's People

Contributors

ehrensteins avatar juliangrabitzky avatar sehrenstein avatar soerenhenning avatar

Forkers

soerenhenning

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.