![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@warren-bank/dapp-frontend
Advanced tools
command-line tool to initialize a Dapp frontend with a complete development toolchain
Command-line tool to initialize a Dapp frontend with a complete development toolchain.
Eventually, several toolchains will be available from which to select.
Currently, the following are implemented:
react
ng2
Within each toolchain, the example Dapp is a rewrite of the MetaCoin
Dapp that's used as an example (boilerplate) by Truffle
.
npm install -g @warren-bank/dapp-frontend
npm install -g @warren-bank/dapp-deploy
# needed to initialize the `react` toolchain
npm install -g create-react-app
npm install -g node-sass
# no additional global dependencies are needed to initialize the `ng2` toolchain
# start: Ethereum JSON-RPC server
mnemonic='foo bar baz'
lxterminal -e testrpc -m "$mnemonic"
# create a new/empty frontend project directory
mkdir ~/react_frontend_dapp
cd ~/react_frontend_dapp
# initialize a new frontend (boilerplate) project having a `react` toolchain
dapp frontend react
# notes:
# - in the example projects, compiled contracts are located within the frontend dapp workspace.
# - in a more realistic workflow, compiled contracts would be located in `@dapphub/dapp` project workspace (./out) separate from the frontend
# - contract deployment requires: *.abi, *.bin
# - frontend (web3.js) requires: *.abi.json, *.deployed.json
backend_contracts_dir='./src/contracts/dapp-backend'
compiled_contracts_dir="${backend_contracts_dir}/out"
frontend_contracts_dir='./src/contracts'
# optional:
# recompile all Solidity contracts
rm ${compiled_contracts_dir}/*
(cd $backend_contracts_dir; dapp build)
# optional, required if Solidity contracts were recompiled:
# delete all frontend ABI data and save a fresh copy: *.abi.json
rm ${frontend_contracts_dir}/*.abi.json
cp ${compiled_contracts_dir}/*.abi ${frontend_contracts_dir}/
rename 's/\.abi$/.abi.json/' ${frontend_contracts_dir}/*.abi
# optional:
# delete metadata for all previous contract deployments
rm ${frontend_contracts_dir}/*.deployed.json
# optional, required if a new instance of `testrpc` was started:
# deploy contracts and save metadata: *.deployed.json
dapp deploy -i $compiled_contracts_dir -O $frontend_contracts_dir'/{{contract}}.deployed.json'
# start: http server and file watcher (.js, .css)
lxterminal -e npm start
# start: file watcher (.scss)
# notes:
# - at launch, it will recompile (.scss => .css)
# - the new .css bundle will trigger webpack to rebundle the .js
# - this new .js bundle will contain the updated contract deployment addresses
# - the browser will display 10000 "MetaCoin" tokens as available balance (in account index #0)
lxterminal -e npm run watch-css
# open Dapp in Chromium browser w/ "MetaMask" extension
# in "MetaMask":
# - Localhost 8545
# - Settings > Reveal Seed Words
# produces the $mnemonic used to initialize `testrpc`
# this ensures that both Ethereum clients are sharing the same accounts (on the same blockchain)
xdg-open 'http://localhost:3000/'
npm start
is runnpm run watch-css
) is needed to do so$ dapp-frontend --help
dapp-frontend command <directory_path>
Commands:
react initialize toolchain: 'React'
ng2 initialize toolchain: 'Angular 2'
Options:
--help Show help [boolean]
Examples:
dapp-frontend react ~/react_frontend_dapp toolchain: 'React'
directory path: '~/react_frontend_dapp'
dapp-frontend react toolchain: 'React'
directory path: '.'
copyright: Warren Bank <github.com/warren-bank>
license: GPLv2
dapphub/dapp
toolchain, but it has no dependency on dapp
.web3.js
to communicate with an Ethereum JSON-RPC server.dapp-deploy
.dapp
is installed, this tool can be invoked by the command: dapp frontend command <directory_path>
dapp-frontend command <directory_path>
create-react-dapp <directory_path>
create-ng2-dapp <directory_path>
FAQs
command-line tool to initialize a Dapp frontend with a complete development toolchain
The npm package @warren-bank/dapp-frontend receives a total of 2 weekly downloads. As such, @warren-bank/dapp-frontend popularity was classified as not popular.
We found that @warren-bank/dapp-frontend demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.