Mokhtar Naamani 198d45a7f4 storage-node: allow 4s to stat local file before considering it not available locally | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
docs | %!s(int64=4) %!d(string=hai) anos | |
packages | %!s(int64=3) %!d(string=hai) anos | |
.eslintrc.js | %!s(int64=4) %!d(string=hai) anos | |
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
.prettierignore | %!s(int64=4) %!d(string=hai) anos | |
LICENSE.md | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos | |
storage-node_new.svg | %!s(int64=4) %!d(string=hai) anos | |
tsconfig.json | %!s(int64=3) %!d(string=hai) anos |
This repository contains several Node packages, located under the packages/
subdirectory. See each individual package for details:
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
$ yarn build
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:
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.
For details on how to setup a storage node on the Joystream network, follow this step by step guide.