Flutter Mobile app client for accessing the Futur Store Decentralized marketplace.
The FuturStore app and Kaggu App are built in Flutter so get the environment ready first.
There are 2 maim files you can choose from when running the app:
lib/main.development.dart
and lib/main.production.dart
and you can choose one of them to run and test the app.
Once you are set up and have your virtual device running for example
flutter run -t lib/main.development.dart
There is a compagnon app Kaggu that is used to read the ebooks downloaded from the Futurstore app
The app interacts with Relai Network Devnet and also Firebase and some configs needs to be done to run the app.
To interact with the blockchain the polkadart package is used.
At the root of the project get first the packages by typing pub get
and after
dart run polkadart_cli:generate -v
to generate the Relai Network Substrate chain types.
The generated types should be located under lib/generated/relai
folder.
If you want to generatee types against a local version of Relai Network.
You can modify the pubspec.yaml
file and replace
polkadart:
output_dir: lib/generated
chains:
relai_network: wss://rpc1.relai.network
by
polkadart:
output_dir: lib/generated
chains:
local: ws://localhost:9944 # or 9945 depending on the port you chose
NB
On Windows, this generation can cause import issues. Running sh .replace_backslash_in_dart_files.sh lib/generated
should resolve them.
You first need to create a firebase project and FlutterFire SDK (just follow step 1 and 2).
There is an already built apks for both FuturStore and Kaggu that can be found and downloaded here and a tutorial that shows us how to use the app.