/Node-RaiLight

RaiLight is a browser native, instant, feeless and scalable cryptocurrency built for mainstream adoption.

Primary LanguageJavaScript

Node-RaiLight Build Status

Webstorm ES6

Settings => Languages & Frameworks => JavaScript language version and choose ECMAScript 6

JS Version

Notice

Work in progress at the moment. Windows builds have several dependecies issues and do not work. Also we have not yet tested the build cross environment. Please open a issue if you find a problem. Thanks.

Installing

0. Node.js

Windows: just download and install from URL: https://nodejs.org/en/download/

Linux: tutorial how to install Node.js using NVM (recommended) Install Node.js using NVM

1. Cloning Repository

git clone https://github.com/RaiLightNetwork/Node-RaiLight.git Node-RaiLight

2. Installing modules

cd Node-RaiLight to enter in the downloaded folder of the repository

npm install

###In case you will get errors:

3. node-gyp

In case your will get errors from node-gyp especially for webrtc

3.1 node-gyp on Windows

open a Command Prompt with Administrator rights

cd C:\Path\To\Node-RaiLight\
npm install --global --production windows-build-tools                                    
npm install

Testing in console

Mocha Tests

npm test                                                       

Missing Packages or Errors

Obs. In case there you get an error message about some missing packages like the following one:

Error: Cannot find module 'name_missing_package'

just, run npm install name_missing_package

Building Dist

Building Dist for Browser (browserify)

npm run build_browser

Building Dist for Browser TEST (dist_bundle/browser/browser.html)

npm run test_browser

open web page dist_bundle/browser/browser.html