You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-11Lines changed: 21 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,13 @@ brew install go
48
48
49
49
Follow RethinkDB install instructions from it's official source: https://rethinkdb.com/docs/install/
50
50
51
+
52
+
### Setup developer environment
53
+
54
+
If you will be developing on your local machine it's better to setup `saplinglib` and `kmdgo` as explained in next steps.
55
+
56
+
If you will be just setting up and using the explorer, either try getting the latest release binaries, or if you prefer to compile, then check the steps to build a redistributable release with `make` command.
57
+
51
58
#### Install saplinglib
52
59
53
60
Installing and setting saplinglib, so you have to get that package and set environment variables.
@@ -131,7 +138,7 @@ go get -u github.com/satindergrewal/kmdgo
131
138
go get -u gopkg.in/rethinkdb/rethinkdb-go.v6
132
139
```
133
140
134
-
####Installing khoji explorer
141
+
### Installing khoji explorer
135
142
136
143
Clone khoji source code to your machine
137
144
@@ -161,7 +168,7 @@ It will output bunch of lines similar to this:
161
168
If you see similar outputs, that means it has created the dabase successfully.
162
169
You can also check the database by opening http://localhost:8080 in your browser.
163
170
164
-
####Installing Komodo or Veruscoin daemon
171
+
### Installing Komodo or Veruscoin daemon
165
172
166
173
You can either run `komodod` or `verusd` which is pre-compiled and you just run the blockchain daemon like usual and sync it fully on your machine via command line, or even using Verus Desktop, and start blockchain daemons with full sync mode from it. Make sure it is not running as light wallet.
167
174
@@ -177,27 +184,30 @@ rpcallowip=127.0.0.1
177
184
rpchost=127.0.0.1
178
185
```
179
186
180
-
####Initiating blockchain sync with RethinkdDB database
187
+
### Initiating blockchain sync with RethinkdDB database
181
188
182
189
You can check help for the command line parameters like this:
183
190
```bash
184
-
$ go run syncblocks.go --help
185
-
Usage of /var/folders/67/mw860sbd1s55w43jy4r8vgvw0000gn/T/go-build362506638/b001/exe/syncblocks:
186
-
-chain komodo
187
-
Define appname variable. The name value must be the matching value of it's data directory name. Example Komodo's data directory is komodo, VerusCoin's data directory is `VRSC` and so on. (default "VRSC")
191
+
$ ./khoji --help
192
+
Usage of /var/folders/67/mw860sbd1s55w43jy4r8vgvw0000gn/T/go-build362506638/b001/exe/main:
193
+
Please selectRethink database name to sync blochaain data with
194
+
-chain VRSC
195
+
Define appname variable. The name value must be the matching value of it's data directory name. Example VerusCoin's data directory is VRSC and so on. (default "VRSC")
188
196
-dbname string
189
-
Rethink database name (default "vrsc")
197
+
Rethink database name
198
+
-setupdb string
199
+
Rethink database name to create and setup with all tables required for explorer
190
200
```
191
201
192
202
So, assuming you have the `verusd` or Verus Desktop running with full blockchain synced on your machine we can proceed with executing the `sync blockchain` command:
193
203
194
204
```bash
195
-
go run syncblocks.go -chain vrsc -dbname vrsc
205
+
./khoji -chain vrsc -dbname vrsc
196
206
```
197
207
198
208
The above should start syncing blockchain data with the database, which can be queried via RethinkDB's data explorer at http://localhost:8080/#dataexplorer.
199
209
200
-
The example DB queries can be found in the bottom of file `syncblocks.go`.
210
+
The example DB queries can be found in the bottom of file `main.go`.
201
211
202
212
Hope this helps install and testing this explorer.
203
213
@@ -208,7 +218,7 @@ Hope this helps install and testing this explorer.
0 commit comments