@bzxnetwork/portal
v0.4.9
Published
Frontend demo portal for bZx
Downloads
44
Readme
bZx Portal
Frontend portal for the bZx network.
Development Setup
Link the
bZx.js
library as per instructions below.Run
npm install
at the project root.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
.
Navigate to the
bZx.js
repository, and typenpm link
in the command line.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
- Ensure dependencies are installed:
npm install
. - Ensure that pages to be exported are specified in
next.config.js
. - Type
npm run build
and your static output will be located in the/dist
directory.
Running a Production Build Locally
- Build production files:
npm run build
- Start local server:
npm run prod