---
# System prepended metadata

title: HealthHash

---

# HealthHash 
***Please be patient, it may take a long time to set up.***

**If you encounter any problem during execution or setting up, please contact:**
sychu.eed07.ee07@nycu.edu.tw
kaiyin0208.ee07@nycu.edu.tw

## Prerequisites
1. Install front-end dependencies
    ```shell
    #node v16.15.0 (npm v8.5.5)
    $ cd HealthHash
    $ npm install
    ```
2. Deploy smart contract 
    ```shell
    $ truffle migrate --network ganache
    $ cp ./build/contracts/HealthCare.json ./src/contracts/.
    ```
3. You have to import several Ethereum accounts from Ganache to MetaMask
## Usage
1. Start front-end server
    ```shell
    $ npm start
    ```
2. Start back-end server
    ```shell
    $ npm run server-start
    ```
3. Go to [http://localhost:3000](http://localhost:3000)

## Expected Result
![](https://i.imgur.com/ZO31ABg.jpg)

---
# Blockchain-based Federated Learning

## Prerequisites
1. Install front-end dependencies
    ```shell
    #node v16.15.0 (npm v8.5.5)
    $ cd BBFL
    $ npm install express
    $ npm install -g babel-cli
    $ npm install
    ```
2. Install Machine learning dependencies 
    - python >= 3
    - tensorflow
    - keras
    - numpy
    - pandas

4. Manually install backend prerequisites
   - [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
   - rustc
   - gnome-terminal

## Usage
``` shell
$ cd frontend/src/components
$ node service.js
$ cd ../..
````

``` shell
$ cd frontend
$ npm start
````

## Expected Result
![](https://i.imgur.com/ZZdtIWs.jpg)
![](https://i.imgur.com/cwv2e5N.jpg)

