# Build and Run Yourself

#### Prerequisites

* [ ] &#x20;Install the [IC SDK](https://internetcomputer.org/docs/current/developer-docs/setup/install/index.mdx) v0.27.0. If the IC SDK is already installed with an old version, install 0.27.0 with [`dfxvm`](https://internetcomputer.org/docs/building-apps/developer-tools/dev-tools-overview#dfxvm).
* [ ] &#x20;Confirm the IC SDK has been installed with the correct version with `dfx --version`.
* [ ] &#x20;Install [candid-extractor](https://crates.io/crates/candid-extractor)
* [ ] &#x20;On **macOS**, an `llvm` version that supports the `wasm32-unknown-unknown` target is required. This is because the `zstd` crate (used, for example, to decode `base64+zstd`-encoded responses from Solana's [`getAccountInfo`](https://solana.com/de/docs/rpc/http/getaccountinfo)) depends on LLVM during compilation. The default LLVM bundled with Xcode does not support `wasm32-unknown-unknown`. To fix this, install the [Homebrew version](https://formulae.brew.sh/formula/llvm), using `brew install llvm`.

Begin by opening a terminal window.

#### Install MOPS

[Install](https://docs.mops.one/quick-start#2-install-mops-cli) the MOPS package manager, e.g., by running

```
curl -fsSL cli.mops.one/install.sh | sh
```

#### Install cargo:

```
curl https://sh.rustup.rs -sSf | sh
```

#### Install Bitcoin Locally with Regtest

Fradium includes Bitcoin functionality. For testing and development, you can run a local Bitcoin regtest instance, allowing you to mine blocks instantly, issue fake BTC, and test transfers securely.

To set up your local Bitcoin regtest environment, follow this official guide:

👉 [Install bitcoin on local machine](https://internetcomputer.org/docs/build-on-btc/btc-dev-env)

The guide walks you through:

* Installing bitcoind
* Creating bitcoin.conf and bitcoin\_data directory
* Running bitcoind

Once bitcoind is running successfully on your local machine, you can proceed to set up and deploy the application.

#### Setup Application:

* Start local Internet Computer replica

  ```
   cd fradium/
   dfx start --clean --background
  ```
* Deploy applications

  ```
   dfx deploy
  ```
* Run the script to mint Fradium tokens to the backend

  ```
   chmod +x ./scripts/fradium.mint_backend.sh
   ./script/fradium.mint_backend.sh
  ```
