nimiq-network / core
- четверг, 8 июня 2017 г. в 03:11:50
JavaScript
Nimiq Blockchain Core
Nimiq is the first Browser-based Blockchain.
Check out our betanet Browser Miner
git clone https://github.com/nimiq-network/core
.npm install
or yarn
./node_modules/.bin/gulp build
clients/browser/index.html
in your browser to access the Browser Client.Follow the Quickstart guide.
Open clients/browser/index.html
in your browser.
To run a NodeJs Client you will need a publicly routable IP, Domain and SSL Certificate (get a free one at letsencrypt.org). Start the client by running clients/nodejs/index.js
.
cd clients/nodejs/
node index.js --host <hostname> --port <port> --key <privkey> --cert <certificate>
Argument | Description |
---|---|
host | Hostname of the NodeJs client. |
port | Port used to communicate with the peers. |
key | Private key for the client |
cert | SSL certificate of your Domain. |
Just include <script src="dist/nimiq.js"></script>
in your project.
Visit the API Documentation.
Developers are free to choose between npm and yarn for managing the dependencies.
NodeJs latest version (> 7.9.0)
gulp: npm install gulp -g
jasmine test framework: npm install jasmine -g
Dependencies: npm install
NodeJs dependencies:
cd src/main/platform/nodejs/
npm install
cd clients/nodejs/
npm install
NodeJs latest version (> 7.9.0)
Dependencies: yarn
NodeJs dependencies:
cd src/main/platform/nodejs/
yarn
cd clients/nodejs/
yarn
If you decided on using yarn for managing the dependencies,
you have to use node_modules/.bin/gulp
instead of gulp
and node_modules/.bin/jasmine
instead of jasmine
in the following.
gulp test
runs the testsuite in your browser.jasmine
runs the testsuite in NodeJs.gulp eslint
runs the ESLint javascript linter.
Executing gulp build
concatenates all sources into dist/{web,web-babel,web-crypto,node}.js
If you'd like to contribute to development Nimiq please follow our Code of Conduct and Contributing Guidelines.
This project is under the Apache License 2.0