Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Latest commit

 

History

History
72 lines (41 loc) · 3.72 KB

prerequisites.md

File metadata and controls

72 lines (41 loc) · 3.72 KB

Installing Development Pre-requisites

The essential tools you will need are npm, docker, docker-compose and a code editor, for example Atom or VSCode. Samples are held in GitHub so git will be needed as well.

Automatic installations scripts are available for Ubuntu

The recommended minimum versions are:

  • Docker: v17.03
  • Docker-compose: v1.13.0
  • npm: v5.5.1
  • node.js: v8.9.1

Manual Installation

1. Installing NVM

We highly recommend installing NVM to easily install and manage versions of node.js and npm. The main runtime uses node.js and npm is used for package management and dependency installation. The runtime requires a version equal to or higher than v8.9.1, but not Node v9 which isn't supported.

Official nvm GitHub repository

2. Kernel Packages

If running on Ubuntu Trusty, it is necessary to obtain additional Kernel packages to enable use of the AUFS storage driver for Docker.

3. Installing Docker Engine

The Docker Engine is essential for running system tests and running the HyperLedger Fabric.

Official Docker Engine Installation Guide

4. Installing Docker Compose

Docker Compose is used for easily configuring and starting HyperLedger Fabric.

Official Docker Compose Installation guide

5. Installing Git

This is probably already installed on most Linux machines. Pay particular attention to setting up the SSL keys that are required.

Official Git Download

Optional Installs

1. Installing an editor

{{site.data.conrefs.composer_full}} allows you to edit its project files with any editor. We recommend using either Atom or Visual Studio Code, as not only do both have excellent support for Javascript development, a .cto file syntax highlighting plugin exists for these editors.

Atom

Atom is a very popular editor and several contributors use it.

Official Atom installation guide

Suggested Plugins:

Visual Studio Code

Visual Studio Code is a lightweight and powerful editor.

Extensions may be installed into VS Code by searching the Extensions repository for the desired extension package and selecting the install option once identified. Suggested extensions include:

  • Composer VS Code Plugin. Provides syntax highlighting for CTO files within VS Code

  • ESLint. Integrates ESLint into VS Code.

  • TSLint. Integrates the tslint linter for the TypeScript language into VS Code.

  • EditorConfig for VS Code. Enables the definition and maintenance of consistent coding styles between different editors and IDEs.

License

Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.