mise en page readme

This commit is contained in:
Antoine WEBER 2015-09-22 16:41:04 +02:00
parent 45353fbc7d
commit ef3f35a7aa
1 changed files with 47 additions and 2 deletions

View File

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