Skip to content

blueberryxtech/ic-mind-body-canister

Repository files navigation

ic-mind-body-canister

About:

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.

Architechture:

ICP-mind-body

Get started locally:

  • clone repository to local directory
  • cd ic-mind-body-dashboard
  • npm run cleanup
  • npm install
  • npm run dev

📦 Deployment to mainnet

  • 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

manually edit /dist for favicon:

  • add <link rel="icon" href="./favicon.ico" /> to dist/index.html
  • add your favicon.ico to dist folder

mainnet deployment

  • dfx deploy --network ic

mainnet test application:

🔑 Key Components

  • 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

🛠️ Technology Stack

  • React: a component-based UI library
  • Motoko: a safe and simple programming language for the Internet Computer
  • mo-dev: a live reload development server for Motoko

📚 Reference

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published