These are chat archives for BVNK/bank

11th
Aug 2016
SuperManfred
@SuperManfred
Aug 11 2016 07:20
Hey Kyle, I also recon this is a pretty awesome project
Kyle Redelinghuys
@ksred
Aug 11 2016 07:21
Hi Manfred. Thanks for the kind words, it's coming along slowly but surely 😬
SuperManfred
@SuperManfred
Aug 11 2016 07:21
I'm having a bit of a problem running it locally (prob is config of my system)
Kyle Redelinghuys
@ksred
Aug 11 2016 07:22
Okay, I'll be happy to help. What trouble are you having?
SuperManfred
@SuperManfred
Aug 11 2016 07:22
I think I have dependencies right
mySQL and redis
cloned the repo
added other dependencies
Screen Shot 2016-08-11 at 12.23.58 AM.png
Kyle Redelinghuys
@ksred
Aug 11 2016 07:24
It looks like your GOROOT is not set
SuperManfred
@SuperManfred
Aug 11 2016 07:25
how to config?
Kyle Redelinghuys
@ksred
Aug 11 2016 07:25
Wait sorry
SuperManfred
@SuperManfred
Aug 11 2016 07:25
you are right
echo $GOROOT
returns nothing
Kyle Redelinghuys
@ksred
Aug 11 2016 07:26
GOPATH should be good
Because it's looking in the right place
Try rename the folder to bank
SuperManfred
@SuperManfred
Aug 11 2016 07:26
Manfreds-MacBook-Pro:BVNK-bank manfredneustifter$ echo $GOPATH
/Users/manfredneustifter/work
Kyle Redelinghuys
@ksred
Aug 11 2016 07:27
Can you give me output of 'pwd'?
SuperManfred
@SuperManfred
Aug 11 2016 07:28
cd into bank
Manfreds-MacBook-Pro:bank manfredneustifter$ pwd
/Users/manfredneustifter/.Trash/bank
Kyle Redelinghuys
@ksred
Aug 11 2016 07:28
The path where the project is stored should be:
...work/src/github.com/BVNK/bank
SuperManfred
@SuperManfred
Aug 11 2016 07:29
ahhhhh fcuk
lol - ok cool
Kyle Redelinghuys
@ksred
Aug 11 2016 07:29
It looks like you renamed to BVNK-bank?
Haha cool
SuperManfred
@SuperManfred
Aug 11 2016 07:29
let me try this
Kyle Redelinghuys
@ksred
Aug 11 2016 07:30
When you set up config file make sure to change the path in the configuration/configuration.go file as well
SuperManfred
@SuperManfred
Aug 11 2016 07:38
you mean line 28
/Users/manfredneustifter/work/src/github.com/BVNK/bank/configuration/configuration.go
does that look right?
Kyle Redelinghuys
@ksred
Aug 11 2016 07:39
Yeah
Yes and the project path looks good now
SuperManfred
@SuperManfred
Aug 11 2016 07:39
var configPath = "/Users/manfredneustifter/work/src/github.com/BVNK/bank/configuration/configuration.go"
Kyle Redelinghuys
@ksred
Aug 11 2016 07:40
No that path must be set to the config.json file
Copy config.json.sample
I'll add that to installation docs my bad
SuperManfred
@SuperManfred
Aug 11 2016 07:59

Manfreds-MacBook-Pro:bank manfredneustifter$ cd /Users/manfredneustifter/work/src/github.com/bank
Manfreds-MacBook-Pro:bank manfredneustifter$ go build
httpApi.go:9:2: cannot find package "github.com/bvnk/bank/accounts" in any of:
/usr/local/go/src/github.com/bvnk/bank/accounts (from $GOROOT)
/Users/manfredneustifter/work/src/github.com/bvnk/bank/accounts (from $GOPATH)
httpApi.go:10:2: cannot find package "github.com/bvnk/bank/appauth" in any of:
/usr/local/go/src/github.com/bvnk/bank/appauth (from $GOROOT)
/Users/manfredneustifter/work/src/github.com/bvnk/bank/appauth (from $GOPATH)
httpApi.go:11:2: cannot find package "github.com/bvnk/bank/configuration" in any of:
/usr/local/go/src/github.com/bvnk/bank/configuration (from $GOROOT)
/Users/manfredneustifter/work/src/github.com/bvnk/bank/configuration (from $GOPATH)
httpApi.go:12:2: cannot find package "github.com/bvnk/bank/push" in any of:
/usr/local/go/src/github.com/bvnk/bank/push (from $GOROOT)
/Users/manfredneustifter/work/src/github.com/bvnk/bank/push (from $GOPATH)
httpApi.go:13:2: cannot find package "github.com/bvnk/bank/transactions" in any of:
/usr/local/go/src/github.com/bvnk/bank/transactions (from $GOROOT)
/Users/manfredneustifter/work/src/github.com/bvnk/bank/transactions (from $GOPATH)
Manfreds-MacBook-Pro:bank manfredneustifter$ echo $GOROOT

Manfreds-MacBook-Pro:bank manfredneustifter$ echo $GOPATH
/Users/manfredneustifter/work
Manfreds-MacBook-Pro:bank manfredneustifter$

Kyle Redelinghuys
@ksred
Aug 11 2016 08:01
Weird. Try set GOROOT to your directory ../work
SuperManfred
@SuperManfred
Aug 11 2016 08:05
you mean:
$ export GOROOT=$HOME/work
sorry man I am noob
Kyle Redelinghuys
@ksred
Aug 11 2016 08:11
No worries. Ya try that and see what the result is
SuperManfred
@SuperManfred
Aug 11 2016 08:14
tried a few combos, no joy
Screen Shot 2016-08-11 at 1.13.12 AM.png
Kyle Redelinghuys
@ksred
Aug 11 2016 08:15
looks like you’re missing a leading /
SuperManfred
@SuperManfred
Aug 11 2016 08:16
tried it :/
Screen Shot 2016-08-11 at 1.16.18 AM.png
Kyle Redelinghuys
@ksred
Aug 11 2016 08:16
here is mine for reference

ksred@ksred-MBP.local:~$ echo $GOROOT

ksred@ksred-MBP.local:~$ echo $GOPATH
/Users/ksred/golang/projects
ksred@ksred-MBP.local:~$ ll /Users/ksred/golang/projects
total 0
0 drwxr-xr-x 6 ksred staff 204B Jul 10 10:56 .
0 drwxr-xr-x 14 ksred staff 476B Jul 12 20:26 ..
0 drwxr-xr-x 20 ksred staff 680B Jul 29 10:55 bin
0 drwxr-xr-x 4 ksred staff 136B Mar 27 13:29 pkg
0 drwxr-xr-x 7 ksred staff 238B Jul 22 07:17 scripts
0 drwxr-xr-x 8 ksred staff 272B Feb 21 15:11 src
ksred@ksred-MBP.local:~$

also have goroot empty
change goroot back i think
SuperManfred
@SuperManfred
Aug 11 2016 08:17
I dont have $GOROOT empty now
I might try change it back
now sure how
Kyle Redelinghuys
@ksred
Aug 11 2016 08:18
export GOROOT=/usr/local/go/bin/go
SuperManfred
@SuperManfred
Aug 11 2016 08:18
ok
then...
Manfreds-MacBook-Pro:bank manfredneustifter$ go build
go: cannot find GOROOT directory: /usr/local/go/bin/go
Kyle Redelinghuys
@ksred
Aug 11 2016 08:19
export GOROOT=/usr/local/go ?
SuperManfred
@SuperManfred
Aug 11 2016 08:19
I have been stuck on this 8 hrs lol
tried it but will do again
Kyle Redelinghuys
@ksred
Aug 11 2016 08:20
so it needs to point to the directory go was installed, not the binary
SuperManfred
@SuperManfred
Aug 11 2016 08:20
hummm
Kyle Redelinghuys
@ksred
Aug 11 2016 08:20
https://golang.org/doc/install or the bin folder maybe
SuperManfred
@SuperManfred
Aug 11 2016 08:21
I always fuck up installing global things in wrong places
Kyle Redelinghuys
@ksred
Aug 11 2016 08:21
i think im installed there as well
try this:
export GOROOT=/usr/local/go
sorry, export GOROOT=/usr/local/go/bin
and then go version to see if it works
SuperManfred
@SuperManfred
Aug 11 2016 08:22
Manfreds-MacBook-Pro:~ manfredneustifter$ go version
go version go1.6.3 darwin/amd64
Kyle Redelinghuys
@ksred
Aug 11 2016 08:22
ok cool
now try go build again in the bvnk/bank directory
SuperManfred
@SuperManfred
Aug 11 2016 08:23
I deleted that directory
reinstalled here:
Manfreds-MacBook-Pro:~ manfredneustifter$ /Users/manfredneustifter/work/src/github.com/bank
Kyle Redelinghuys
@ksred
Aug 11 2016 08:24
it should be in /Users/manfredneustifter/work/src/github.com/bvnk/bank
SuperManfred
@SuperManfred
Aug 11 2016 08:24
ok , i can just mkdir BVNK and drop the bank in there?
Kyle Redelinghuys
@ksred
Aug 11 2016 08:25
yeah should be good
SuperManfred
@SuperManfred
Aug 11 2016 08:27
nope
spaggetti
Kyle Redelinghuys
@ksred
Aug 11 2016 08:27
ok what is the working directory now?
SuperManfred
@SuperManfred
Aug 11 2016 08:29
/Users/manfredneustifter/work/src/github.com/BVNK/bank
Screen Shot 2016-08-11 at 1.27.57 AM.png
Kyle Redelinghuys
@ksred
Aug 11 2016 08:30
ya so that’s the go installation again
echo GOROOT ?
SuperManfred
@SuperManfred
Aug 11 2016 08:30
Manfreds-MacBook-Pro:bank manfredneustifter$ echo GOROOT
GOROOT
Manfreds-MacBook-Pro:bank manfredneustifter$ echo $GOROOT
/usr/local/go/bin
Kyle Redelinghuys
@ksred
Aug 11 2016 08:30
export GOROOT=/usr/local/go/
go build
SuperManfred
@SuperManfred
Aug 11 2016 08:31
then go build
oooohhhh :)
its looking for the right wrong thing
Manfreds-MacBook-Pro:bank manfredneustifter$ go build
../../bvnk/bank/push/push.go:9:2: cannot find package "github.com/ksred/apns" in any of:
/usr/local/go/src/github.com/ksred/apns (from $GOROOT)
/Users/manfredneustifter/work/src/github.com/ksred/apns (from $GOPATH)
../../bvnk/bank/accounts/accounts.go:11:2: cannot find package "github.com/shopspring/decimal" in any of:
/usr/local/go/src/github.com/shopspring/decimal (from $GOROOT)
/Users/manfredneustifter/work/src/github.com/shopspring/decimal (from $GOPATH)
Kyle Redelinghuys
@ksred
Aug 11 2016 08:32
ok cool
feel like we’re almost there haha
SuperManfred
@SuperManfred
Aug 11 2016 08:33
Manfreds-MacBook-Pro:bank manfredneustifter$ go get github.com/ksred/apns
Manfreds-MacBook-Pro:bank manfredneustifter$ go get github.com/shopspring/decimal
Manfreds-MacBook-Pro:bank manfredneustifter$ go build
Manfreds-MacBook-Pro:bank manfredneustifter$
weird - seemed to fire a blank
Kyle Redelinghuys
@ksred
Aug 11 2016 08:34
means success
:D
ls -lahs
and you should see a binary bank
SuperManfred
@SuperManfred
Aug 11 2016 08:34
yes!
Kyle Redelinghuys
@ksred
Aug 11 2016 08:34
try ./bank
SuperManfred
@SuperManfred
Aug 11 2016 08:34
:D
Kyle Redelinghuys
@ksred
Aug 11 2016 08:34
you’ll get some errors though because config is probably wrong
and no TLS certs
SuperManfred
@SuperManfred
Aug 11 2016 08:34
yeah...
Kyle Redelinghuys
@ksred
Aug 11 2016 08:35
so basically copy config.json.sample to config.json and then edit those values
SuperManfred
@SuperManfred
Aug 11 2016 08:35
cool - I feel like i made progress
ok
Kyle Redelinghuys
@ksred
Aug 11 2016 08:35
then change the configuration/configuration.go path to where config.json is
then generate some certs for the HTTP server, there is a script to help with that.
SuperManfred
@SuperManfred
Aug 11 2016 08:36
awesome
that will be for tomorrow afternoon
its 136am here
Kyle Redelinghuys
@ksred
Aug 11 2016 08:36
haha. but yes progress definitely.
oh wow. dedication man
SuperManfred
@SuperManfred
Aug 11 2016 08:36
but — stoked you were here
keen to hear more about your project
Kyle Redelinghuys
@ksred
Aug 11 2016 08:37
all good, also feel free to email me directly.
SuperManfred
@SuperManfred
Aug 11 2016 08:37
the whole approach seems bang on mate
I am reading your blogs about it
Kyle Redelinghuys
@ksred
Aug 11 2016 08:37
thanks a lot man 👊
yeah it’s been accepted into an accelerator so that should help, need some seed funding to get it to prod though. but a lot of interest
SuperManfred
@SuperManfred
Aug 11 2016 08:37
so you mentioned you are going to build a product out of this later
ah - yeah I was going to ask what you are doing full time
Kyle Redelinghuys
@ksred
Aug 11 2016 08:38
ya. aim is to license as core banking software. have some interest from a few african countries
and UK/US
im working in encrypted comms currently
SuperManfred
@SuperManfred
Aug 11 2016 08:38
interesting
well def keen to chat more and hopefully bring more people in to contribute
Kyle Redelinghuys
@ksred
Aug 11 2016 08:39
so ya, passion project but picking up interest
that would be awesome
SuperManfred
@SuperManfred
Aug 11 2016 08:40
the react native is what caught my eye
Kyle Redelinghuys
@ksred
Aug 11 2016 08:40
the app is so beautiful, im so stoked. currently busy getting ready to submit to app store
its done though.
SuperManfred
@SuperManfred
Aug 11 2016 08:40
but this is really what we need at the mo — a good (modern) core banking
Kyle Redelinghuys
@ksred
Aug 11 2016 08:41
yeah, and open standards around it
big push for that currently
SuperManfred
@SuperManfred
Aug 11 2016 08:42
yeah stoked
stoked for you — stoked for the project!
Kyle Redelinghuys
@ksred
Aug 11 2016 08:43
6-home.png
5-single-transaction.png
0-landing.png
4-payment.png
3-user-screen.png
1-register.png
2-menu.png
haha thanks man.
those are pics of the app
SuperManfred
@SuperManfred
Aug 11 2016 08:43
ahahh man looks really goo
d
Kyle Redelinghuys
@ksred
Aug 11 2016 08:43
thanks! will get it sorted soon then on apps tore
but ya if you have questions feel free to email, happy to help
also helps me get a good installation guide
SuperManfred
@SuperManfred
Aug 11 2016 08:44
for sure
will def keep in touch
Kyle Redelinghuys
@ksred
Aug 11 2016 08:44
awesome.
SuperManfred
@SuperManfred
Aug 11 2016 08:46
peace out
Kyle Redelinghuys
@ksred
Aug 11 2016 08:46
Cheers man