Skip to content

The local instance is the director for all the local nodes.

License

Notifications You must be signed in to change notification settings

nileorg/instance-lib-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f907ef9 · Mar 2, 2019

History

58 Commits
Feb 10, 2019
Mar 2, 2019
Feb 25, 2019
Dec 1, 2018
Feb 3, 2019
Feb 3, 2019
Nov 29, 2018
Feb 3, 2019
Feb 3, 2019
Nov 11, 2018
Feb 10, 2019
Dec 1, 2018
Feb 26, 2019
Feb 26, 2019

Repository files navigation

Nile Local Instance

The Nile instance is the director for all the local nodes. When a new node enters the network, the node sends its IPNS name to the local Nile instance, this instance will verify and then eventually accepts the node inside the local network inserting a new value in a table (node_id, ipns_name); then the Nile instance will publish the table on IPFS and update its IPNS name to point to the latest version of the table. Clients will then load the frontstore directly gathering this list from IPFS.

Configuration

  1. Install the nodejs dependencies
    npm install
    
  2. Migrate data to the database
    npm run migrate -- up
    

Running

npm start

Testing

npm run test

Contribute

Join us on Discord: https://discord.gg/je27JSc

Read the documentati on here: https://docs.nile.shopping/ss