A simple UI to recover funds from Copay backups.
Get the source code:
git clone [email protected]:bitpay/copay-recovery.git && cd copay-recovery
npm install
Now you can run server with
npm start
It is not necessary anymore (running automaticaly after npm install
).
For the use of Crypto in our code, a modification must be done in the @ angular / cli code.
Go to /copay-recovery/node_modules/@angular/cli/models/webpack-configs/common.js
And replace this node definition:
Node: {
Fs: 'empty',
Global: true,
Crypto: true,
Tls: 'empty',
Net: 'empty'
Process: true,
Module: false,
ClearImmediate: false,
SetImmediate: false
}
Specifically: Crypto: 'empty' for crypto: true,
You can see the original discussion about this here: angular/angular-cli#1548
There is a public install of this software hosted at github at: https://bitpay.github.io/copay-recovery/
This project was generated with Angular CLI version 1.2.8.
Run npm start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ./node_modules/.bin/ng build --prod --aot=false --base-href "https://bitpay.github.io/copay-recovery/"
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
First go to /copay-recovery/node_modules/@angular/cli/models/webpack-configs/production.js
And remove these lines:
new webpack.optimize.UglifyJsPlugin({
mangle: { screw_ie8: true },
compress: { screw_ie8: true, warnings: buildOptions.verbose },
sourceMap: buildOptions.sourcemaps,
comments: false
})
Then run this simple command to generate pages for Copay Recovery:
npm run publish
npm i -g angular-cli-ghpages
Go to master
branch and run:
ngh
Successfully published!