Skip to content

Commit 109e503

Browse files
add osx-arm deps in makefile, updated ReadMe instructions with Makefile and logs info
1 parent 9d5715d commit 109e503

2 files changed

Lines changed: 22 additions & 12 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ build-osx: deps-osx
106106
cd $(DIST_OSX_PATH); zip -r ../$(BINARY_NAME)_macos.zip *
107107
$(RM_RFV) $(DIST_OSX_PATH)
108108
cd $(ROOT_DIR)
109-
build-osx-arm:
109+
build-osx-arm: deps-osx-arm
110110
$(GITCMD) checkout $(CHECKOUT_BRANCH)
111111
$(MKDIR_P) $(DIST_OSX_ARM_PATH)
112112
GO111MODULE=auto CGO_CFLAGS="-I$(HOME)/go/src/github.com/satindergrewal/saplinglib/src/" CGO_LDFLAGS="-L$(HOME)/go/src/github.com/satindergrewal/saplinglib/dist/darwin_arm64 -lsaplinglib -framework Security" CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 $(GOBUILD) -o $(DIST_OSX_ARM_PATH)/$(BINARY_NAME) -v

README.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ brew install go
4848

4949
Follow RethinkDB install instructions from it's official source: https://rethinkdb.com/docs/install/
5050

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+
5158
#### Install saplinglib
5259

5360
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
131138
go get -u gopkg.in/rethinkdb/rethinkdb-go.v6
132139
```
133140

134-
#### Installing khoji explorer
141+
### Installing khoji explorer
135142

136143
Clone khoji source code to your machine
137144

@@ -161,7 +168,7 @@ It will output bunch of lines similar to this:
161168
If you see similar outputs, that means it has created the dabase successfully.
162169
You can also check the database by opening http://localhost:8080 in your browser.
163170

164-
#### Installing Komodo or Veruscoin daemon
171+
### Installing Komodo or Veruscoin daemon
165172

166173
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.
167174

@@ -177,27 +184,30 @@ rpcallowip=127.0.0.1
177184
rpchost=127.0.0.1
178185
```
179186

180-
#### Initiating blockchain sync with RethinkdDB database
187+
### Initiating blockchain sync with RethinkdDB database
181188

182189
You can check help for the command line parameters like this:
183190
```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 select Rethink 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")
188196
-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
190200
```
191201
192202
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:
193203
194204
```bash
195-
go run syncblocks.go -chain vrsc -dbname vrsc
205+
./khoji -chain vrsc -dbname vrsc
196206
```
197207
198208
The above should start syncing blockchain data with the database, which can be queried via RethinkDB's data explorer at http://localhost:8080/#dataexplorer.
199209
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`.
201211
202212
Hope this helps install and testing this explorer.
203213
@@ -208,7 +218,7 @@ Hope this helps install and testing this explorer.
208218
209219
# TODO
210220
211-
- [ ] Make Explorer's RPC API using database
221+
- [-] Make Explorer's RPC API using database
212222
- [ ] Web Graphical Interface for Explorer
213223
- [ ] Make explorer's gRPC API using database
214224

0 commit comments

Comments
 (0)