diff --git a/README.md b/README.md index c517dff..7e5dc61 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,45 @@ Version 2015 [![Dependency Status](https://gemnasium.com/ClubInfoPolytechLille/ci-site.svg)](https://gemnasium.com/ClubInfoPolytechLille/ci-site) + +##Configuration + +```bash +mkdir config +cd config +openssl genrsa -out ci_com.pem 2048 +openssl rsa -in ci_com.pem -pubout > ci_com_pub.pem +pwgen -1 -N 1 32 > session_secret +scp polytech:/etc/{passwd,group} . +``` + +Fichier par défaut : `config.js` +```javascript +module.exports = { + port: 8173 +}; +``` + +Fichier par défaut : `db.js` +```javascript +module.exports = { + url: 'mongodb://localhost/ci-site' +}; +``` + +Fichier par défaut : `sshAuth.js` +```javascript +module.exports = { + host: '', // Serveur de login. Consulter le TWiki pour plus de détails + port: 22 +}; +``` + +##Mise en marche + +```bash +npm install +npm install -g bower +bower install +node server.js +``` diff --git a/bower.json b/bower.json index 2585591..311b5d1 100644 --- a/bower.json +++ b/bower.json @@ -6,11 +6,14 @@ "angular-animate": "~1.3.15", "angular-ladda": "~0.2.2", "angular-route": "~1.3.15", - "animate.css": "~3.2.6", - "bootswatch": "3.3.4+1", + "animate.css": "~3.4.0", + "bootswatch": "3.3.5+4", "jsencrypt": "~2.1.0", - "remarkable-bootstrap-notify": "~3.0.2", + "remarkable-bootstrap-notify": "~3.1.3", "ng-sortable": "~1.2.0", "angular-markdown-directive": "~0.3.1" + }, + "resolutions": { + "angular": "~1.3.15" } } diff --git a/package.json b/package.json index 17a74a8..3b3b842 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "main": "server.js", "repository": "https://github.com/ClubInfoPolytechLille/ci-site", "dependencies": { - "async": "^0.9.0", + "async": "^1.5.0", "body-parser": "^1.12.3", "compression": "^1.4.3", "connect-mongo": "^0.8.1", @@ -11,9 +11,9 @@ "express": "^4.12.3", "express-session": "^1.11.1", "mongoose": "^4.0.2", - "node-cache": "^2.1.1", + "node-cache": "^3.0.0", "serve-favicon": "^2.2.0", "ssh2": "^0.4.6", - "ursa": "^0.8.4" + "ursa": "^0.9.1" } } -- libgit2 0.21.2