Web3 Medical Invoice
Ensure you have the following installed on your machine:
- Node.js
- Yarn
You can check their versions using the following commands:
node -v
yarn -vClone your fork of the ZKMedical-Billing repository:
git clone https://github.com/[USER_NAME]/ZKMedical-Billing/Change into the medical-invoice-ionic-tokengated/ directory:
cd ZKMedical-Billing/medical-invoice-ionic-tokengated/Open the project in your preferred code editor. For Visual Studio Code, use:
code .-
Create a
.envfile in the root directory:touch .env
-
Copy the contents from
.env.exampleand paste them into.env. -
Obtain the following credentials:
-
Infura API Key: Visit the Infura Dashboard to create an API key and add it to
.env:VITE_INFURA_API_KEY=<your_infura_api_key>
-
-
Navigate to the web3-tools-contracts directory to get the latest deployed contract address on all supported chains. Update the contract addresses in the
.envfile:VITE_MEDI_INVOICE_CONTRACT_ADDRESS=<contract_address>
Install the necessary dependencies using Yarn:
yarnStart the web application:
ionic serve-
Sync the Android codebase:
ionic cap sync android
-
Run the synced APK on an Android device:
npx cap run android
-
Open the project in Android Studio:
ionic cap open android
-
Sync the iOS codebase:
ionic cap sync ios
-
Run the synced IPA on an iOS device:
npx cap run ios
-
Open the project in Xcode:
ionic cap open ios
-
Setup your Storacha client by giving your email, it'll send an authorization mail where you have to validate the req

-
Modify any content on the spreadsheet and Save the file using saveAs, yyou'll get your CID that is uploaded to your storacha space which is created automatically when you do 1st step

-
Check your Storacha console for the files that are being uploaded

-
When file uploads are done you can try refreshing for retrieving the files at IPFS files section

