@evan.network/ui-dapp-browser
evan dapp root project for loading sub dapps, that can also be compiled as a mobile application
Last updated 23 days ago by tschuck .
AGPL-3.0-only · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @evan.network/ui-dapp-browser 
SYNC missed versions from official npm registry.

dapp-browser

The dapp-browser is the wrapper application for the evan.network DApp framework. Using the project you will be able to create featured DApps.

By using the evan.network framework to create featured DApps, the initialization of DBCP or the blockchain core is altered and existing, initialized and configured instances can be loaded. This has the advantage that accounts, encryptions and similar complex configurations are executed dynamically by the user when the application is started.

To do this, however, all DApps must be started via the evan.network dapp-browser application, since this provides the complete function stack and the various UIs. As long as the provided functions are used, the application can only be started in environments that have the corresponding structures. Alternatively, the blockchain-core can be initialized, configured and used, as in the standalone example.

API Documentation and Tutorials

Functionallity

The src folder includes a dev.html and a index.html file. By opening the dev.html file, the code will bypass several code loading checks, to try to load dapps from the local file server. The compiled files from the "src/app" folder will be placed within the runtime folder. Chosen files will be copied to the www folder for deployment and native app building. During the dev mode the application will try to load dapps not from ens and ipfs, but from the local file server (runtime/external). This folder will be filled using the lerna DApp projects (e.g. ui-dapps). During production mode, each DApp or contract will be loaded using its ens or contract address and dbcp description. How to develop DApps, that can be loaded via the dapp-browser, have a look here DApp Basics.

The DApp browser provides several functionallities to access

  • DApp routing
  • global utillity functions like log
  • DApp time tracing options
  • IPFS cache
  • ipfs handlers
  • load and start sub DApps
  • loading mechanisms
  • SystemJS plugins for ENS loading, ENS and file loading, IPFS loading, JSON loading, CSS loading

Installation

npm i @evan.network/ui-dapp-browser

Building

  • build the runtime folder
yarn build
  • start a deployment
    • all folders within the runtime/external folder can be deployed
    • they should include a valid dbcp.json file and a dbcpPath.json file, that includes the origin -the content of this folder will be dynamcally created by the development build jobs of angular-gulp
yarn deploy --config pathToConfig
yarn serve
  • runs the build command, watch for file changes and starts a local file serve with the runtime folder
yarn build
  • expose local development server to others for testing
ssh -R evan:80:localhost:3000 serveo.net

Usage

  • typescript

tsconfig.json

{
  "compilerOptions": {
    ...,
    "paths": {
      "dapp-browser": [
        "../node_modules/@evan.network/ui-dapp-browser/dist/dapp-browser.js"
      ]
    }
    ...
  }
}

ENS Deployment

Have a look at the deployment description.

REPL Deployment

You can also start a repl for handling manual deployment steps. Just start the following script, with the same configuration that was passed below within the ENS deployment description.

yarn deploy-repl --config ...

Available params:

  • advancedDeployment
  • configPath
  • dappDeploymentFolder
  • dappFolder
  • licensesFolder
  • originFolder
  • platformFolder
  • runtimeFolder
  • bcc
  • config
  • deploymentAccount
  • deploymentDomain
  • initialized
  • ipfsConfig
  • ipfsInstance
  • ipfsUrl
  • runtime
  • web3

Current Tags

  • 3.0.2                                ...           latest (23 days ago)

34 Versions

  • 3.0.2                                ...           23 days ago
  • 3.0.1                                ...           3 months ago
  • 3.0.0                                ...           3 months ago
  • 2.8.0                                ...           3 months ago
  • 2.7.0                                ...           6 months ago
  • 2.6.1                                ...           7 months ago
  • 2.6.0                                ...           8 months ago
  • 2.5.1                                ...           8 months ago
  • 2.5.0                                ...           8 months ago
  • 2.4.0                                ...           9 months ago
  • 2.3.0                                ...           10 months ago
  • 2.2.3                                ...           a year ago
  • 2.2.2                                ...           a year ago
  • 2.2.1                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.1.3                                ...           a year ago
  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.1-alpha                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.7.0                                ...           a year ago
  • 1.6.3                                ...           a year ago
  • 1.6.2                                ...           a year ago
  • 1.6.1                                ...           a year ago
  • 1.6.0                                ...           a year ago
  • 1.5.2                                ...           2 years ago
  • 1.5.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 50
Last Day 0
Last Week 34
Last Month 0
Dependencies (18)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |