Projet S9 : Enseirb : Réseaux social décentralisé avec partage de videos
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/jaxp.properties > /dev/null
./db_init.sh mediahome mediahome mediahome # create a user mediahome with password mediahome and a database mediahome
if you want use default folder for video
sudo chown -R {$USER}:{$USER} /var/www/html
git clone [email protected]:dngroup/vhg-adaptation-worker.git
sudo ./deploy.sh # is long
sudo nano /etc/mediahome/box.properties
sudo nano /etc/mediahome/central.properties
./start.sh
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
#NOT UPDATED some arg is maybe false
java -jar ./dvd2c-box/target/dvd2c-box-1.0-SNAPSHOT-jar-with-dependencies.jar --ip 0.0.0.0 -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
java -jar ./dvd2c-central/target/dvd2c-central-1.0-SNAPSHOT-jar-with-dependencies.jar --ip 0.0.0.0 -p 9999 --db-hostname localhost --db-port 27017
http://localhost:9998/index.html
not updated
{
"user": {
"userID": "[email protected]",
"name": "name",
"surname": "surname",
"password": "password",
"pubKey": "pubKey",
"privateKey": "privateKey"
}
}
<user>
<userID>userID</userID>
<name>name</name>
<surname>surname</surname>
<password>password</password>
<pubKey>pubKey</pubKey>
<privateKey>privateKey</privateKey>
</user>
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"?>
<relation>
<email>[email protected]</email>
<name>name</name>
<surname>surname</surname>
<pubKey>pubKey</pubKey>
<aprouve>1</aprouve>
<unix_time>0</unix_time>
<roleID>0</roleID>
</relation>
<box>
<boxID>boxID</boxID>
<privateKey>privateKey</privateKey>
<pubKey>pubKey</pubKey>
<ip>localhost:9998</ip>
<TTL>0</TTL>
</box>
for contentId 54b76bf2-0330-4aa8-99d4-45d05edac051 of [email protected] if before you have group 0 and 1 and you want 0 and 4 make put this uri
/api/app/[email protected]/content/54b76bf2-0330-4aa8-99d4-45d05edac051
with
<?xml version="1.0" encoding="UTF-8"?>
<content>
<authorization>
<roleID>0</roleID>
<action>action</action>
</authorization>
<authorization>
<roleID>4</roleID>
<action>action</action>
</authorization>
</content>
for local userId = [email protected] and relationId = [email protected] put this uri
/api/app/[email protected]/relation/[email protected]
<?xml version="1.0"?>
<relation>
<groupID>3</groupID>
<groupID>4</groupID>
</relation>
get this url
/api/app/{userID}/group/{groupId}
URL : http://localhost:9998/index.html
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
Content type
Image
Digest
sha256:605877533…
Size
205.4 MB
Last updated
almost 11 years ago
docker pull dngroup/central