0.1.0 • Published 7 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 ESLintandPrettier - Code formatterextensions via the sidebar.
Bootstrap Dependencies
npm install -g npm@latest # Recommended
npm install # This will also run lerna bootstrapReinstall All Dependencies
npx lerna clean --yes
npx lerna bootstrapRunning keyhub locally and using local blockchain
- edit - epochBeginningand- genesisAccountIdin to match the local blockchain running- /home/capt4ce/works/bcz/keyhub-vault/packages/keyhub-vault-web/src/conf/equinehub-dev/constants.js
- edit - url,- idand- heightof 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.appto 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 bootstrapkeyhub root directory
- run keyhub's caddy 
- run the local blockchain 
- use caddy for the local blockchain so that it can be accessed with - httpscady example for the local blockchain
localhost:20822 {
	proxy / localhost:2082/ {
		transparent
	}
	tls self_signed
}0.1.0
7 years ago