POPCOIN is an appliation for a currency which has the mechanism featured by demurrage and universal basic income (in the future) a global currency.
Now this is only a demo version with restricted features. Creating a new account with EPFL Tequila authentication, receiving and sending coins to others.
For windows user, you can download Node.js installer (.msi) here.
For macOS user, you can also download Node.js from the link above or use Homebrew (package manager for macOS):
brew install node
For installing the Node.js on Linux, please check the document here for different distributions of Linux.
After clone this project by the commands below:
# Get the repo
git clone [email protected]:dedis/personhood.online.git
# Switch to this branch
git fetch
git checkout rn-dev
# Change directory to the project
cd ./personhood.online
Then prepare react native dependencies:
yarn
# or using the default package manager
npm install
If you not familiar with yarn
. please check here. Both package manager yarn
or npm
works for this project.
For both iOS and Android, they have their own dependencies for supporting react native packages.
It can only run on macOS
Ensure that you already have Xcode and CocoaPods installed on your macOS. Then run:
npx pod-install ios
# or
cd ./ios
pod install
The script below will build the app and run it in the simulator. It will also automatically start the metro daemon for compiling project dynamically.
yarn ios
Similarly, the script below will run the app in an Android simulator. You also need to have Andriod Studio and gradle installed first.
yarn android
To make a release build:
cd ./android
./gradlew assembleRelease
Then you will find the APK in ./android/app/build/outputs/apk/release/
By running the script below, you will get the ABI and bytecode of the POPCOIN contract:
solc -o . --bin --abi ./contract/Popcoin.sol