GithubHelp home page GithubHelp logo

core's Introduction

Nimiq Blockchain Build Status

Nimiq is the first Browser-based Blockchain.

Library Demo

Check out our betanet Browser Miner

Quickstart

  1. Clone this repository git clone [email protected]:nimiq-network/core.git.
  2. Run npm install or yarn
  3. Run ./node_modules/.bin/gulp build
  4. Open clients/browser/index.html in your browser to access the Browser Client.

Web Developers

Installation for Web Developers

Follow the Quickstart guide.

Run Client

Run Browser Client

Open clients/browser/index.html in your browser.

Run NodeJs client

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.

Build your own Browser client

Just include <script src="dist/nimiq.js"></script> in your project.

API

Visit the API Documentation.

Core Developers

Developers are free to choose between npm and yarn for managing the dependencies.

Installation for Core Developers (using npm)

  • 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

Installation for Core Developers (using yarn)

  • 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.

Test and Build

Run Testsuite

  • gulp test runs the testsuite in your browser.
  • jasmine runs the testsuite in NodeJs.

Run ESLint

gulp eslint runs the ESLint javascript linter.

Build

Executing gulp build concatenates all sources into dist/{web,web-babel,web-crypto,node}.js

Contribute

If you'd like to contribute to development Nimiq please follow our Code of Conduct and Contributing Guidelines.

License

This project is under the Apache License 2.0

core's People

Contributors

styppo avatar paberr avatar mar-v-in avatar robinlinus avatar jeffesquivels avatar panoramicrum avatar schrnz avatar danimoh avatar

Watchers

Davide Berardi avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.