Setting up your local development environment

Gitlab

The required code can be downloaded from our gitlab repositories:

gitlab.com/hybrix-public

To download (clone) the code from gitlab please use:

git clone https://gitlab.com/hybrix-public/node.git

Enter the newly created folder

cd node

To setup and install development dependencies run:

./scripts/npm/setup.sh

This will also automatically clone several other repositories that are required. Once this is done an online connection is no longer needed for development. An overview of the folder structure that will be created follows:

Folder structure

The development environment expects all repositories to be cloned into a common base folder, you can choose any name. Here we will use $HYBRIXD as a placeholder ($ are shell variable prefixes)

Required

Optional

Per project

npm commands

npm (Node Package Manager) is used to manage the node packages per project (located in the $HYBRIXD/$PROJECT/node_modules folders) The configuration is stored in $HYBRIXD/$PROJECT/package.json

Important! Please do not use you global npm but the one located in $HYBRIXD/$PROJECT/node_binaries/bin/npm This ensures version compatibility.

The following commands can be used from the $HYBRIXD/$PROJECT project folders:

Troubleshooting

node

The following extra commands can be used from the $HYBRIXD/nodeproject folder:

web-wallet

The following extra commands can be used from the $HYBRIXD/web-wallet project folder: