Skip to content

fmsouza/ethereum-wallet

Repository files navigation

Ethereum Wallet Build Status

This project is a Ethereum Wallet built on top of ReactNative.

Table of Contents

Available Scripts

npm install

Installs all dependencies and prepares the app to run.

npm start

Runs Packager to provide your app in development mode.

npm test

Runs the jest test runner on your tests.

npm run test:ci

Runs all the tests in CI mode, which does some optimizations and optputs code coverage information.

npm run test:watch

Runs the tests in watch mode, so whenever you change your code the involved tests will run again.

npm run ios

Open your app in the iOS Simulator if you're on a Mac and have it installed. Depends on npm start.

npm run android

Open your app on a connected Android device or emulator. Requires an installation of Android build tools (see React Native docs for detailed setup). Depends on npm start.

npm run android:build

Build the Android app and generate the APK to install on the device.

npm run android:bundle

Bundles the ReactNative JavaScript code. Run it before running the build command to be able to run the test without depending on the development server.

npm run android:generate-apk

Bundle and build the Android app.

npm run android:clean

Clean the Android generated build files.

npm run android:logcat

Outputs the Android logcat to the cli, so you can see native the logs in runtime.

Writing and Running Tests

This project is set up to use jest for tests. You can configure whatever testing strategy you like, but jest works out of the box. Create test files in directories called __tests__ or with the .test extension to have the files loaded by jest. See the template project for an example test. The jest documentation is also a wonderful resource, as is the React Native testing tutorial.

License

MIT

Contribute

TODO