From ec200c96fdd60ac2ef045408d4a8758fe45cfdeb Mon Sep 17 00:00:00 2001 From: GammaNu - Millicent Billette <git@1000i100.fr> Date: Thu, 17 Nov 2016 18:12:05 +0100 Subject: [PATCH] quick-start-guide & npm script for easy install and start. --- README.md | 5 +++++ doc/quick-start.md | 35 +++++++++++++++++++++++++++++++++++ package.json | 2 ++ 3 files changed, 42 insertions(+) create mode 100644 doc/quick-start.md diff --git a/README.md b/README.md index 32729a3f1..3b493fa92 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,11 @@ In the world of crypto-currencies, [Sakia Wallet](http://sakia-wallet.org) ([rep ## Going further +### Contribute + +- [Quick-start-guide : start a duniter node with web-ui from source](https://github.com/duniter/duniter/blob/master/doc/quick-start.md) +- [Guide (fr)](https://github.com/duniter/duniter/blob/master/doc/contribute-french.md) + ### Documentation Visit [Duniter website](https://duniter.org): it gathers theoretical informations, FAQ and several useful links. If you want to learn, this is the first place to visit. diff --git a/doc/quick-start.md b/doc/quick-start.md new file mode 100644 index 000000000..f58770821 --- /dev/null +++ b/doc/quick-start.md @@ -0,0 +1,35 @@ +# Quick-start-guide : start a duniter node with web-ui from source + +## Prerequisite : +- git ([Windows, Mac, Linux](https://git-scm.com/downloads)) +- nodejs ([Windows, Mac](https://nodejs.org/), [Linux](https://nodejs.org/en/download/package-manager/)) +- python 2.7 ([Windows, Mac](https://www.python.org/downloads/), Linux -> you allready have it) +- gcc ([Windows, Mac, Linux](https://github.com/nodejs/node-gyp#installation)) +- [GitHub](https://github.com/) account (optional, needed to contribute) + +Alternative : for Windows user who love screenshot : [from Windows Installation to ready to use nodejs](https://www.serverpals.com/blog/building-using-node-gyp-with-visual-studio-express-2015-on-windows-10-pro-x64#user-content-fresh-windows-installation) + +[//]: # ([prepare your computer to use nodejs (Windows, Mac, Linux)]() http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/ https://github.com/creationix/nvm#install-script ) + +## Install + +```bash +git clone https://github.com/duniter/duniter.git +cd duniter +npm run full-install +npm run webstart +``` +Connect to your duniter-node admin web-panel on : [http://localhost:9220/](http://localhost:9220/) + +## Contribute + +- On github, fork https://github.com/duniter/duniter on your account repository. +- Change, improve, do what will be usefull. +- Run `npm test` and if it's ok +- Run `git remote add myFork https://github.com/<<yourAccount>>/duniter.git` or similar writable git repository. +- Run `git add .` or other command to prepare your commit +- Run `git status` to check what will be in your commit +- Run `git commit -m "explain what you have do/improve"` +- Run `git push myFork` +- On github create a pull-request for your contrib. + diff --git a/package.json b/package.json index 7bfaa4cc0..78f72dc45 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,10 @@ "test": "test" }, "scripts": { + "full-install":"npm install && git submodule init && git submodule update && cd web-ui && npm install", "test": "mocha --growl --timeout 20000 test test/fast test/fast/block test/integration test/", "start": "node bin/duniter start", + "webstart": "node bin/duniter webstart", "test-travis": "node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec --timeout 20000 test test/fast test/fast/block test/integration test/" }, "repository": { -- GitLab