Skip to content
Snippets Groups Projects
Commit ec200c96 authored by Millicent Billette's avatar Millicent Billette
Browse files

quick-start-guide & npm script for easy install and start.

parent eda685a8
No related branches found
No related tags found
1 merge request!718quick-start-guide & npm script for easy install and start.
...@@ -27,6 +27,11 @@ In the world of crypto-currencies, [Sakia Wallet](http://sakia-wallet.org) ([rep ...@@ -27,6 +27,11 @@ In the world of crypto-currencies, [Sakia Wallet](http://sakia-wallet.org) ([rep
## Going further ## 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 ### 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. 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.
......
# 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.
...@@ -13,8 +13,10 @@ ...@@ -13,8 +13,10 @@
"test": "test" "test": "test"
}, },
"scripts": { "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/", "test": "mocha --growl --timeout 20000 test test/fast test/fast/block test/integration test/",
"start": "node bin/duniter start", "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/" "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": { "repository": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment