Code Monkey home page Code Monkey logo

projekt-5s-dhbw's Introduction

projekt-5s-dhbw

Anwendung mittels docker-compose starten

1. Docker Image builden

  • Voraussetzung: Du befindest dich im Ordner mit der docker-compose.yml (/Dockerfiles)
docker-compose build

2. Docker Image starten

docker-compose up

Anwendung manuell starten

Docker installieren

Docker Images herunterladen (mit docker-compose nicht notwendig)

Docker Container ausführen (mit docker-compose nicht notwendig)

  • Kafka starten (Windows):
docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=192.168.99.100 --env ADVERTISED_PORT=9092 spotify/kafka
  • Kafka starten (sonst):
docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=127.0.0.1 --env ADVERTISED_PORT=9092 spotify/kafka
```
* ActiveMq starten:
````shell
docker run --name activemq -P webcenter/activemq
```

### Simulation starten (mit docker-compose nicht notwendig)
* Windows:
```shell
java -jar TaktstrasseOpcServer-0.0.1-SNAPSHOT.jar -amqp tcp://192.168.99.100:32768 -d 1000 -kafka 192.168.99.100:9092 -o <path> -topic prodData
```
* sonst:   
```shell
java -jar TaktstrasseOpcServer-0.0.1-SNAPSHOT.jar -amqp tcp://localhost:32768 -d 1000 -kafka localhost:9092 -o <path> -topic prodData
```

### MongoDB starten und benutzen (mit docker-compose nicht notwendig)
* MongoDB Server starten (ohne Angabe eines Pfades verwendet MongoDB das aktuelle Verzeichnis:
```shell
mongod --dbpath /Pfad/zum/Data/Ordner (e.g. /Users/Philip/Database/Data)
```
* Mit MongoDB Server über die MongoShell verbinden:
```shell
mongo
```
* Alle Datenbanken auflisten:
```shell
> show dbs
```
* Spezielle Datenbank verwenden:
```shell
> use db_name
```
* Alle Collections einer Datenbank anzeigen:
```shell
> show collections
```
* Alle Dokumente einer Collection auf einer ausgewählten Datenbank ausgeben:
```shell
> db.collection_name.find()
```
```shell
> db.collection_name.find().pretty()
```
*  Bestimmte Dokumente einer Collection auf einer ausgewählten Datenbank ausgeben:
```shell
> db.collection_name.find({name:"mongoDB", nummer:1})
```
*  MongoShell verlassen:
```shell
> exit
```
### Node Anwendung starten
```shell
cd Webserver
node app.js
```
* Anwendung ist anschließend unter localhost:8080 zu erreichen

### Probleme bei der Programmausführung
* EOFException bei Spark im docker-compose => Serverprobleme => Abhilfe: neuer Build
* Nach Aufruf des Produktionsablaufs (Tab "Machine") muss evtl. kurz gewartet werden, bis Darstellung korrekt funktioniert.

projekt-5s-dhbw's People

Contributors

dawe1992 avatar ottofabian avatar rieckpil avatar 4lexbaum avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

ottofabian

projekt-5s-dhbw's Issues

Make pipeline running

  • Integration of Spark with Kafka
  • Replace existing docker containers with our own containers

Update Wiki and README

  • Every subgroup have to write their own progress and documentation
  • Please create a file in the wiki and link it to the README

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.