This guide provides step-by-step instructions on how to run the Bitcoin Bank project.
For more information about the project, read the Design Document.
Before running the project, make sure you have the following prerequisites installed on your system:
- Rust and Cargo: Install Rust and Cargo
- Git: Install Git
- Node.js: Install Node.js
Fork the project repository on GitHub by clicking the "Fork" button at the top right corner of the repository page. Then, clone the forked repository to your local machine using the following command:
git clone https://github.com/<your-username>/Bitcoin-bank.git
Once the project is cloned, navigate to the project directory using the cd
command:
cd Bitcoin-bank
Note:This project consists of 2 modules client(frontend) and backend,
The service requires bitcoind
and bitcoin-cli
to installed.
To run the binary, pass the config file which configures the bitcoin daemons for the mining node (node that consistently generates blocks), hot walled node and cold wallet node. The example config file can be found in the backend/btc_conf.toml
file.
The binary checks for the home directory of your specific platform and uses that to create the data directory for the bitcoind for the nodes as follows:
UserHomeDir
|-- bitcoin-bank-data #Application directory
|-- mining-node # Mining node data directory
|-- hot-node # Hot wallet node data directory
|-- cold-node # Cold wallet node data directory
To run the binary with the default config file
$ cd ./backend
$ cargo run -- ./btc_conf.toml
Navigate to the frontend directory and follow the instructions provided in the README file located there.
cd client
Once the project is running, you can access the application by opening a web browser and navigating to the appropriate URL.