Mokhtar Naamani d18b5e2292 storage-node: npm scripts, match prettier args in format and checks scripts 4 years ago
..
docs 34358429f8 move storage node into storage-node/ folder 4 years ago
packages 3cfcd9c33a fix path to classes.json and entities.json 4 years ago
scripts 533b255e75 storage-node: init versioned store when running development environment 4 years ago
.eslintrc.js 565ade3481 code style last tweaks, add format and checks yarn scripts 4 years ago
.gitignore f1e792e762 storage-node: introduce CLI typescript project 4 years ago
.travis.yml 34358429f8 move storage node into storage-node/ folder 4 years ago
LICENSE.md 34358429f8 move storage node into storage-node/ folder 4 years ago
README.md 1afc52b4bf storage-node: README add instructions for running dev instance with docker 4 years ago
package.json d18b5e2292 storage-node: npm scripts, match prettier args in format and checks scripts 4 years ago
storage-node_new.svg 34358429f8 move storage node into storage-node/ folder 4 years ago
tsconfig.json f1e792e762 storage-node: introduce CLI typescript project 4 years ago

README.md

Storage Nodes for Joystream

This repository contains several Node packages, located under the packages/ subdirectory. See each individual package for details:

Installation

Requirements

This project uses yarn as Node package manager. It also uses some node packages with native components, so make sure to install your system's basic build tools.

On Debian-based systems:

$ apt install build-essential

On Mac OS (using homebrew):

$ brew install libtool automake autoconf

Building

$ yarn install

The command will install dependencies, and make a colossus executable available:

$ yarn colossus --help

Testing

Run an ipfs node and a joystream-node development chain (in separate terminals)

ipfs daemon
joystream-node --dev
$ yarn workspace storage-node test

Running a development environment, after starting the ipfs node and development chain

yarn storage-cli dev-init

This will configure the running chain with alice as the storage lead and with a known role key for the storage provider.

Run colossus in development mode:

yarn colossus --dev

Start pioneer ui: ``sh yarn workspace pioneer start


Browse pioneer on http://localhost:3000/
You should find Alice account is the storage working group lead and is a storage provider
Create a media channel. And upload a file. You may have to wait a couple of minutes before
the ipns of the storage-node is registered before you can upload a file, or you will get an error
in pioneer.

## Detailed Setup and Configuration Guide
For details on how to setup a storage node on the Joystream network, follow this [step by step guide](https://github.com/Joystream/helpdesk/tree/master/roles/storage-providers).

## Running a development instance with Docker
If you have docker installed you can run a fresh development setup using the utility scripts provided:

First build a docker image of joystream-node from the root:

sh

Build the latest image

scripts/build-joystream-node-docker-image.sh

Run docker-compose to start an ipfs node, and joystream-node in development mode

initializes the chain with development settings, and start a storage-node

storage-node/scripts/run-dev-instance.sh ```