Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description


Projet S9 : Enseirb : Réseaux social décentralisé avec partage de videos


for webdev here

With docker (more easy)

Docker tuto

For general dev

First install :

please reamber your password for mysql

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections

sudo apt-get install -y oracle-java8-installer maven git mysql-server mongodb-server

echo javax.xml.accessExternalSchema = all | sudo tee  /usr/lib/jvm/java-8-oracle/jre/lib/ > /dev/null

MySql configuration

./ mediahome mediahome mediahome # create a user mediahome with password mediahome and a database mediahome

Run Application

if you want use default folder for video

sudo chown -R {$USER}:{$USER} /var/www/html

We need vhg-adaptation-worker

git clone
sudo ./ # is long

change with your configuration

sudo nano /etc/mediahome/
sudo nano /etc/mediahome/

Run Application

on vhg-adaptation-worker

To run the application for development and using default value run :
mvn clean package
java -jar ./dvd2c-box/target/dvd2c-box-*-SNAPSHOT-jar-with-dependencies.jar 

Or for the central server

java -jar ./dvd2c-central/target/dvd2c-central-*-SNAPSHOT-jar-with-dependencies.jar 
To run the application for real test, run :
#NOT UPDATED some arg is maybe false
java -jar ./dvd2c-box/target/dvd2c-box-1.0-SNAPSHOT-jar-with-dependencies.jar  --ip -p 9998 --db-hostname localhost --db-port 27017 -b BOX_TEST --content-path /var/www/html -c http://localhost:9999 -a http://localhost:9998  --rabbit-host localhost --rabbit-port 5672
or for the central server
java -jar ./dvd2c-central/target/dvd2c-central-1.0-SNAPSHOT-jar-with-dependencies.jar --ip -p 9999 --db-hostname localhost --db-port 27017



not updated



Create a user

  "user": {
    "userID": "",
    "name": "name",
    "surname": "surname",
    "password": "password",
    "pubKey": "pubKey",
    "privateKey": "privateKey"


Create a relation

Relationships have an Approuve Value :

1 - I asked the relationships.

2 - I received a request for a relationships

3 - Both accepted the relationship.

<?xml version="1.0" encoding="UTF-8"?>

Create a box


Edit group of a conten t

for contentId 54b76bf2-0330-4aa8-99d4-45d05edac051 of vince\ if
before you have group 0 and 1 and you want 0 and 4 make put this uri



<?xml version="1.0" encoding="UTF-8"?>

edit group of relation

for local userId = user1\ and relationId = user2\ put this uri


<?xml version="1.0"?>

get list user of a group

get this url


Other informations

Web Interface

URL : http://localhost:9998/index.html

Groups names

Groups are only manage with IDs and you cannot change the display, All groups
are created manually into JS Code : 0 public 1 family 2 friends 3 work

Docker Pull Command
Source Repository