Skip to main content

Getting Started

Installation

Clone the repo and open the directory:

git clone https://gitlab.com/xcapit-foss/app xcapit-smart-wallet
cd xcapit-smart-wallet

Ensure you have Node and Yarn installed, then install and start Smart Wallet:

yarn install
npm start

Visit localhost:8100 to view the app.

Unit & E2E Tests (Karma & Protractor)

To run the tests, run:

 npm run test

Testing on Real Devices

It's recommended that all final testing be done on a real device โ€“ both to assess performance and to enable features that are unavailable to the emulator (e.g. a device camera).

Android

Follow the Capacitor Android Environment Setup Guide to set up your development environment.

When your development environment is ready, run the build:prod:xcapit:android package script.

npm run build:prod:xcapit:android

iOS

Follow the Capacitor iOS Environment Setup Guide to set up your development environment.

When your development environment is ready, run the build:prod:xcapit:ios package script.

npm run build:prod:xcapit:ios

Configuration

For configuration settings you could see and change the next files.

./variables.env.ts
./src/environments/environment.ts
./src/environments/environment.prod.ts

Docker

You can run Xcapit Smart Wallet with Docker by running the following commands.

cp docker-compose.yml.example docker-compose.yml
docker-compose up -d

Xcapit Smart Wallet depends on backend services for authentication, notifications, blockchain information and others features. Related to blockchain information, you can configure yours RPCs urls and the Covalent credentials in the configuration files.

The Xcapit backend services for authentication and notifications will be available in gitlab.com/xcapit-foss soon.

Schema

The next schema represent Xcapit Smart Wallet interacion with backend services.

smart wallet services relation