Jolocom SmartWallet - An application to manage your digital identity.
Interested in our vision? Take a look at our whitepaper
- Set-up requires Node.js to be installed on your computer.
- Starting with version
1.2.0
of the Jolocom SmartWallet,Node.js v10+
is required to build the project. Versions prior to1.2.0
requireNode.js v8
.
- Starting with version
- We use Yarn as our package manager.
- Clone the smartwallet-app repository to your computer.
cd
into the directory and runyarn
oryarn install
from your terminal to install the required packages.
- Please set up an Android development environment and install the required SDKs.
- The Getting Started guide for React Native may come in handy.
- Look for the instructions under React Native CLI Quickstart.
- Connect an Android device and enable USB debugging OR start an Android AVD emulator
- Run
yarn run:android
to install the application and run it.- NOTE: this will start a metro bundler server automatically, with stdout/stderr discarded. You can close this and run
yarn start
to manually start the bundler and receive more detailed output.
- NOTE: this will start a metro bundler server automatically, with stdout/stderr discarded. You can close this and run
- Please set up an appropriate Xcode development environment.
- The Getting Started guide for React Native may come in handy.
- Look for the instructions under React Native CLI Quickstart.
- Run
yarn build:ios
to assemble the application bundle. - Run
yarn run:ios
to install and run the application in an emulator.- This will default to an iPhone X emulator.
- The device can be specified by adding
--simulator
and the device name.- e.g.
yarn run:ios --simulator "iPhone SE"
- e.g.
- NOTE: this will start a metro bundler server automatically, with stdout/stderr discarded. You can close this and run
yarn start
to manually start the bundler and receive more detailed output.
A debug build can also be built through Xcode.
Running a build on a physical device requires the appropriate code signing certificates.
We use Jest for unit tests, and detox + Jest for end-to-end tests.
To run unit tests, with watch and testing coverage display enabled:
yarn test --watch --coverage
To run e2e tests, first make sure to start a bundling server using yarn start
To run e2e tests on device:
yarn e2e:android
To run e2e tests on emulator/simulator:
yarn e2e:android:emu
yarn e2e:ios:sim
- We use ESLint and Prettier to keep a consistent style across the codebase.
- There are plugins available for a range of IDEs and text editors; automatic formatting on save is also supported in some editors.
yarn format
will format files automatically as much as possible.
Copyright (C) 2014-2019 JOLOCOM GmbH