0.4.9 • Published 7 years ago
@bzxnetwork/portal v0.4.9
bZx Portal
Frontend portal for the bZx network.
Development Setup
Link the
bZx.jslibrary as per instructions below.Run
npm installat the project root.Run
npm run devto 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.jsrepository, and typenpm linkin the command line.Navigate back to this repository, and type
npm link bZx.jsto 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 buildand your static output will be located in the/distdirectory.
Running a Production Build Locally
- Build production files:
npm run build - Start local server:
npm run prod