Skip to content

Neuron: Get Started on Windows

James Chen edited this page Jul 12, 2019 · 7 revisions

Neuron: Get Started on Windows

Preparations

Neuron is an official CKB wallet and an open source project on github, so it’s recommended that install Git for windows and the following steps are performed on Git Bash.

  • Install Git and open Git Bash

Download Git for windows from Git-Downloads,double-click to install it and open Git Bash.

Install prerequisites

You will need node >= 12 and yarn >= 1.14 to build and run this Neuron.

Install node

Download the latest version from Download|Node.js, double-click to install it, set the path and environment variables after installation.

Install yarn

Download the latest stable version on installation|Yarn, double-click to install it, set the path and environment variables after installation.

Check out the code from GitHub

open Git Bash and clone source code from github.

$ git clone https://github.com/nervosnetwork/neuron.git
$ cd neuron

Install Lerna

Neuron uses lerna for packages management. It can be installed globally, or locally in the project.

$ yarn global add lerna # install lerna globally# or
$ yarn add lerna --exact --ignore-workspace-root-check # install lerna locally in the project

Install Dependencies

After lerna installed, the dependencies can be installed by

$ yarn bootstrap

Start Neuron

Start Neuron in development mode

$ yarn start

This command will start two tasks

  1. start neuron-ui, which loads the user interface.
  2. start neuron-wallet, which provides the wallet functionality.

They are also able to start independently:

# start neuron-ui at `http://localhost:3000`
$ cd packages/neuron-ui && yarn start
# start neuron-wallet
$ cd packages/neuron-wallet && yarn start:dev

Test

# launch the test runner in the watch mode.
$ yarn test