Skip to content

PeachProject/PeachClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

______               _     
| ___ \             | |    
| |_/ /__  __ _  ___| |__  
|  __/ _ \/ _` |/ __| '_ \ 
| | |  __/ (_| | (__| | | |
\_|  \___|\__,_|\___|_| |_|
                CLIENT


License:    GPLv3
Authors:    Christian Bierstedt
            Henry Müssemann

Peach Concept

Read about the Peach concept!

Peach Client Concept

Server

The main peach frontend is a flask server. The flask server will use the PeachShared submodule to communicate to the peach backend.

Setting up PeachClient

To set up peach client you will have to do the following steps:

Understand the Peach Concept

  1. Please make sure you have understood the Peach concept and have set up the backend properly (mysql / kafka / PeachBackend / ...).
  2. Gather all IPs and ports. You will need them later on...

No idea? Maybe you should think about cloning the PeachStandalone Git

Installation of Prerequisites

  1. Install the latest version of Flask (Flask Installation)
  2. Install the LDAP python module
$ sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
$ sudo pip install python-ldap
  1. Install kafka-python:
$ pip install kafka-python
  1. Install Apache Avro for Python
  2. Clone this repository
  3. Init all submodules
$ git submodule init
$ git submodule update

Adapt configs

  1. Copy flaskServer/config/flaskServerConfig.sample.py to flaskServer/config/flaskServerConfig.py
$ cp flaskServer/config/flaskServerConfig.sample.py flaskServer/config/flaskServerConfig.py
  1. Adapt the newly created file (e.g. $ vim flaskServer/config/flaskServerConfig.py):
Replace

"<PeachClient_Git_Repo>": The directory of this file (e.g. /home/peach/PeachClient)
"<peach_temp_data>": The shared storage (See basic concept)
"<mysql_*>": The mysql information
"<current_domain>": The current domain (e.g. http://localhost:5000 !<-no ending backslash!)
  1. Copy PeachShared/library/config/peachSharedConfig.sample.py to PeachShared/library/config/peachSharedConfig.py
$ cp PeachShared/library/config/peachSharedConfig.sample.py PeachShared/library/config/peachSharedConfig.py
  1. Adapt the newly created file (e.g. $ vim PeachShared/library/config/peachSharedConfig.py):
Replace

"<PeachClient_Git_Repo>": The directory of this file (e.g. /home/peach/PeachClient)
"<peach_temp_data>": The shared storage (See basic concept)
"<kafka_server>": The kafka server address (e.g. localhost:9092)

Start the flask server

  1. Set FLASK_APP environment variable in terminal
$ export FLASK_APP=app.py
  1. Start the flask server
$ cd flaskServer
$ flask run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published