Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.29 KB

File metadata and controls

34 lines (24 loc) · 1.29 KB

Microverse Quickstart

Here we are going to walkthrough a basic Node.js application.

First, we need to add some common dependencies.

Let's create the executable script.

bin/quickstart.js

require('@microverse-network/core/node')
require('@microverse-network/core/plugins-standard')

const Module = require('@microverse-network/core/module')
global.module = new Module({ id: 'quickstart' })

This script will instantiate a new instance of the Module class with a given id. Every instance having this same id will be able to communicate each other by finding each others address on the tracker.

This quickstart is just showing the essential requirements. You can look at database module for a more advanced implementation.