This is an example mobile app that uses an example backend that displays how you can integrate portal into your mobile app.
-
Follow the docs to create a google app and configure the google drive backup option.
-
Create an Alchemy API key
We have implemented our exchange backend that is hosted at https://portalex-mpc.portalhq.io which you can use to get spun up quickly but we recommend using that as a guide to implement your own backend to be used with portal.
Create your .env file:
# Used by the Portal client
ANDROID_CLIENT_ID="VALUE"
ALCHEMY_API_KEY="VALUE"
IOS_CLIENT_ID="VALUE"
# Used by app-specific code
CUSTODIAN_SERVER_URL="https://portalex-mpc.portalhq.io"
Ensure you have recieved an npm auth token and created an
.npmrcfile in the root of this folder
See the docs for more info on setting up your npmrc file
yarn
yarn android
yarn
cd ios
pod install
cd ..
yarn ios