0.4.9 • Published 5 years ago

@bzxnetwork/portal v0.4.9

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

bZx Portal

Frontend portal for the bZx network.

Development Setup

  1. Link the bZx.js library as per instructions below.

  2. Run npm install at the project root.

  3. Run npm run dev to start up the development server.

Link bZx.js

This portal depends on bZx.js, which is a javascript library for interfacing with the bZx network.

In order to interface with the development version of this library, you'll need to link it with npm link.

  1. Navigate to the bZx.js repository, and type npm link in the command line.

  2. Navigate back to this repository, and type npm link bZx.js to link the module for this project.

Visual Studio Code

If you are using VSCode as your editor, make sure to install the following packages:

  • ESLint

Your settings for optimal developer experience (DX) should include:

{
  "eslint.autoFixOnSave": true
}

Building for Production

  1. Ensure dependencies are installed: npm install.
  2. Ensure that pages to be exported are specified in next.config.js.
  3. Type npm run build and your static output will be located in the /dist directory.

Running a Production Build Locally

  1. Build production files: npm run build
  2. Start local server: npm run prod