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

Scripts and common commands

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

Important! When working with node packages please do not use global npm but the one located in $HYBRIXD/$PROJECT/scripts/main/npm.sh . 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: