Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 39 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Bitcore

![Circle CI](https://circleci.com/gh/bitpay/bitcore/tree/master.svg?style=shield)

**Infrastructure to build Bitcoin and blockchain-based applications for the next generation of financial technology.**
Expand All @@ -9,20 +10,57 @@

- Trusted P2P Peer
- MongoDB Server >= v3.4
- Docker
- nodejs >= 10
- make g++ gcc

### Checkout the repo


```sh
git clone git@github.com:bitpay/bitcore.git
cd bitcore
git checkout master
npm install
```

## Setup Guide

### 1. Setup Bitcore config
### 1. Setup Docker

Start Docker by running

```sh
dockerd
```

```sh
docker-compose -f docker-compose.test.yml up
```

### 2. Setup Bitcore Node Config

```sh
docker ps

# Get IP Addresses of the Dockers

docker inspect deviceID | grep IPAddress

# Enter your docker device ID in place of deviceID

# Replace the hostname with that respective IP address of your docker in Bitcore-test.config.json

mv Bitcore-test.config.json Bitcore.config.json
```

### 3. Start Bitcore

```sh
npm run node
```

## Example Config files

<details>
<summary>Example bitcore.config.json</summary>
Expand Down Expand Up @@ -104,8 +142,6 @@ npm install

</details>

### 2. Setup Bitcoin Node

<details>
<summary>Example Bitcoin Mainnet Config</summary>

Expand Down Expand Up @@ -133,23 +169,6 @@ rpcpassword=password

</details>

### 3. Run Bitcoin node

<details>
<summary>Example Starting a Bitcoin Node</summary>

```sh
# Path to your bitcoin application and path to the config above
/Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt -datadir=/Users/username/blockchains/bitcoin-core/networks/mainnet/
```

</details>

### 4. Start Bitcore

```sh
npm run node
```

## Applications

Expand Down