Skip to content

bitpay/copay-recovery

 
 

Repository files navigation

Recovery Tool

A simple UI to recover funds from Copay backups.

Installation

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

Postinstall (DEPRECATED)

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

Public Installation

There is a public install of this software hosted at github at: https://bitpay.github.io/copay-recovery/

About Recovery Tool

This project was generated with Angular CLI version 1.2.8.

Development server

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.

Build

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.

Publish web on Github Pages (gh-pages)

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

Install dependencies:

npm i -g angular-cli-ghpages

To publish the web:

Go to master branch and run:

ngh

Successfully published!

About

A simple client-side app to recover funds from all current and past Copay backups.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8