Skip to content

massalabs/node-manager-plugin

Repository files navigation

node-manager-plugin

Node manager is a massa station plugin that allows you to launch a Massa node on your machine without having to use the terminal. Via its web interface, you can manage staking, get logs, choose the network, etc.

Note: This plugin needs to have the Massa Wallet plugin installed.

Requirements

Setup

Install dev dependencies:

task install

Run go generate and create mocks:

task generate

Download Massa node binaries:

task setup-node-folder

Build:

task build

Install the plugin on Massa Station locally:

task install-plugin

If Massa Station was already running, you need to relaunch it for the plugin to be detected.

Standalone

Node manager plugin is expected to be used via Massa Station. However, during the dev process, you don't necessarily need to install the plugin on Station each time you want to test it. To launch the plugin without having to install it in Station, you can build it in standalone mode:

task build-standalone

Then you can run it:

task run

Then open your browser and go to: localhost:8080

Even if the plugin runs outside of Massa Station, it still needs Massa Station to be launched on your machine. If Massa Station is not running, the plugin will be stuck on 'loading'.

Architecture

Back

The core logic of the node manager is placed in the core folder. Interactions with other elements (massa-node cli, file system, API handlers, local database...) are handled in specific packages. API handlers call core logic which, in turn, calls other drivers.

Front

The frontend is a TypeScript React project using vite framework. The front end is built and embedded in the Go code, then served by the api (see html package).

Test

Unit tests are created with testify. Dependencies are mocked with the mockery mock generator. To generate a mock of your interface, set it in .mockery.yml following the example of other mocked elements.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •