0.1.0 • Published 5 years ago
@keyhub/keyhub-vault-nxt v0.1.0
Keyhub-Vault Monorepo
This is the monorepo for the Keyhub Vault component using Lerna.
List of Packages
- keyhub-vault-web - The vault that lives on the Web (browser-based).
Install IDE Plugins
- Visual Studio Code IDE: Install
ESLint
andPrettier - Code formatter
extensions via the sidebar.
Bootstrap Dependencies
npm install -g npm@latest # Recommended
npm install # This will also run lerna bootstrap
Reinstall All Dependencies
npx lerna clean --yes
npx lerna bootstrap
Running keyhub locally and using local blockchain
edit
epochBeginning
andgenesisAccountId
in to match the local blockchain running/home/capt4ce/works/bcz/keyhub-vault/packages/keyhub-vault-web/src/conf/equinehub-dev/constants.js
edit
url
,id
andheight
of lastKnownBlocks mathching the local blockchain for example
module.exports = {
url: 'https://localhost:20822',
isTestNet: false,
adminPassword: '',
lastKnownBlock: {
id: '12561374543856956095',
height: '0',
},
}
- change
https://nxt1.vault.keyhub.app
to your blockchain url in Caddyfile of keyhub
Content-Security-Policy "sandbox allow-same-origin allow-modals allow-scripts; default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; manifest-src 'self'; style-src 'self'; img-src 'self'; media-src 'self'; font-src 'self'; frame-src 'none'; worker-src blob: data:; child-src blob: data:; script-src blob: 'self' 'sha384-rPMBYwDhb6zrv3/mO71SlMxpVbRnWUX4Brw4sLnlTGd3OcEFZjcRHS0L2yTUHq4Q'; connect-src 'self' https://nxt1.vault.keyhub.app; require-sri-for script style"
compile the keyhub by running
lerna bootstrap
keyhub root directoryrun keyhub's caddy
run the local blockchain
use caddy for the local blockchain so that it can be accessed with
https
cady example for the local blockchain
localhost:20822 {
proxy / localhost:2082/ {
transparent
}
tls self_signed
}
0.1.0
5 years ago