From 4f5a5251d67613a81d012745454ff8217959f1ce Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 26 Sep 2016 16:14:45 +0200 Subject: [PATCH] add note about nvm in readme --- readme.md | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/readme.md b/readme.md index 70a5a24b5..c80766ad0 100644 --- a/readme.md +++ b/readme.md @@ -17,22 +17,30 @@ engine. The secret key is stored in the URL [fragment identifier] which is never the server but is available to javascript so by sharing the URL, you give authorization to others who want to participate. -To install: - git clone - cd cryptpad - npm install - npm install -g bower ## if necessary - bower install +# Installation - ## copy config.js.dist to config.js - cp config.js.dist config.js +Cryptpad depends on the Nodejs runtime. +We recommend installing it via [NVM](https://github.com/creationix/nvm "Node Version Manager") to ensure that you are running an up to date version. - ## modify configuration to use your own mongodb instance - ## for example aon the default mongodb port `mongodb://localhost:27017/demo_database` - $EDITOR config.js +Once you have a recent runtime: - node ./server.js +``` +git clone +cd cryptpad +npm install +npm install -g bower ## if necessary +bower install + +## copy config.js.dist to config.js +cp config.js.dist config.js + +## modify configuration to use your own mongodb instance +## for example aon the default mongodb port `mongodb://localhost:27017/demo_database` +$EDITOR config.js + +node ./server.js +``` ## Maintenance