This is demo Application for ldk-node, which shows how to start node, open channels, make payments and close channels.
Note: Make sure you have completed the React Native - Environment Setup.
First, you will need to clone code from github repo.
git clone https://github.com/LtbLightning/ldk-node-rn-demo.git
Navigate to cloned folder and run following commands to install node_modules and pods.
cd Ldk-node-rn-demo
# using npm
npm install
# using yarn
yarn install
Install Pods: for iOS only
npx pod-install
OR
cd ios && pod install
# using npm
npm run android
# OR using Yarn
yarn android
# using npm
npm run ios
# OR using Yarn
yarn ios
If everything is set up correctly, you should see your new app running in your Android Emulator or iOS Simulator shortly provided you have set up your emulator/simulator correctly.
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
You've successfully run ldk node Demo App. 🥳