diff --git a/README.md b/README.md index a637a29..6bafec3 100644 --- a/README.md +++ b/README.md @@ -8,58 +8,102 @@ INSTALLATION -------------------- **Sur Windows** + pré requis, installer git ( https://git-scm.com/download/win ) + pré requis, installer nodejs 0.12.x ( https://nodejs.org/dist/v0.12.7/ ) + ouvrir l'invite de commande 'cmb', puis se deplacer dans un repertoire où vous voulez installer + taper: git clone https://github.com/TwanoO67/plex-web-downloader.git + taper: cd plex-web-downloader + taper: npm install + modifier le fichier config.js, pour le chemin de database (attention il faut doubler les \ et proteger les espaces ) + exemple: C:\\Users\\yourUsername\\AppData\\Local\\Plex\ Media\ Server\\Plug-in\ Support\\Databases\\com.plexapp.plugins.library.db + taper: npm start + puis ouvrir http://localhost:3000 + **Sous MacOS** + pré requis, nodejs + sinon installer homebrew ( ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ) + puis brew install node + git clone https://github.com/TwanoO67/plex-web-downloader.git + cd plex-web-downloader + npm install + modifier le fichier config.js, pour le chemin de database + exemple: /Users/yourUsername/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db + npm start + puis ouvrir http://localhost:3000 + **Sous Ubuntu** + pré requis nodejs, ou apt-get install nodejs + ln -s /usr/bin/nodejs /usr/local/bin/node + git clone https://github.com/TwanoO67/plex-web-downloader.git + cd plex-web-downloader + npm install + modifier le fichier config.js, pour le chemin de database + exemple: /home/yourUsername/plex-config/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db + npm start + puis ouvrir http://localhost:3000 + DEVELOPPEMENT -------------------- -//le projet a été créée initialement avec +**le projet a été créée initialement avec** + node install express -g + node install express-generator -g + express nom_du_projet + cd nom_du_projet + npm install -//pour installer plex (depuis un dockerfile) +**pour installer plex (depuis un dockerfile)** + mkdir ~/plex-config + sudo chown 797:797 -R ~/plex-config + sudo docker run -d --restart=always -v ~/plex-config:/config -v ~/Movies:/media/plex -p 32400:32400 wernight/plex-media-server + sudo chmod 777 ~/plex-config/Plex\ Media\ Server/Plug-in\ Support/Databases/* + sudo chmod 777 ~/Movies + sudo ln -s ~/Movies /media/plex + configurer vos chaines sur: http://localhost:32400/web/index.html @@ -67,6 +111,7 @@ COMPILATION -------------------- npm install enclose -g + enclose -o bin/mac_bin --loglevel info -c enclose_config.js -v 0.12.7 ./bin/www