This repository provides tooling for a user controlled method for hosting wearable data on a blockchain network through the Internet Computer, Blueberry was used as an example.
A web toolkit (server and web application interface) for storing fitness, heart, motion and cognitive data on blockchain to enable people and businesses to take control of their data.
- clone repository to local directory
cd ic-mind-body-dashboard
npm run cleanup
npm install
npm run dev
- setup your canister wallet follow ic guide
npm run cleanup
- ensure "build": "parcel src/mind_body_assets/src/index.html", is set in package.json
npm run dev
- modify generated app.*******.js file in dist/ folder to adjust associated canisterId for front end
const cansiterId = “pvznn-pyaaa-aaaan-qlljq-cai” (test deployment backend id)
- ensure "build": "", is set in package.json
- add
<link rel="icon" href="./favicon.ico" />
to dist/index.html - add your favicon.ico to dist folder
dfx deploy --network ic
- frontend: https://pa64a-oqaaa-aaaan-qllka-cai.icp0.io/
- backend: https://a4gq6-oaaaa-aaaab-qaa4q-cai.raw.icp0.io/?id=pvznn-pyaaa-aaaan-qlljq-cai
- main.mo - HTTP outcall requests to proxy API, put and delete functions for single data hashmap
- mydata-view.jsx - front end API call requests to motoko backend, encryption and decryption of data and plotting of data into table & chart format
- login-view.jsx - web3 identity setting
- BlueberryDictionaryCompression.jsx - compressing data into a vectorized for to and from dictionary format
- CostEstimation.jsx - fixed cost estimation based on publically available rates on ICP's website