Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 1.55 KB

File metadata and controls

50 lines (43 loc) · 1.55 KB

lite-go

A very simple and light interface to demonstrate how to take advantage of the Paybook Financial API (Sync) to pull information from Mexican Banks and Tax Authority.

Requirements

  1. GO Stable version 1.6.1, follow this guide to install GO
  2. NodeJS Stable version 5.10.1
  3. Bower
  4. Paybook Sync API key
  5. **Optional ** sqlite3

Install (cli / terminal)

  1. In your $GOPATH/src create paybook.com directory
  2. cd $GOPATH/src/paybook.com/
  3. git clone https://github.com/Paybook/lite-go lite
  4. go get github.com/beego/bee
  5. go install paybook.com/lite
  6. cd $GOPATH/src/paybook.com/lite
  7. npm install

Configure

  1. Create conf/app.conf file with the following content
appname = lite
httpport = 9090
runmode = dev
autorender = true
SessionOn = true
copyrequestbody = true
TemplateLeft = "<<<"
TemplateRight = ">>>"

pbsync_api_key = "YOUR-API-KEY-HERE"
pbsync_base_url = "https://sync.paybook.com/v1/"
pbsync_files_url = "https://s.paybook.com"

Execute (cli / terminal)

  1. cd $GOPATH/src/paybook.com/lite
  2. Type: bee run
  3. Test it http://localhost:9090/
  4. Create a new user on Signup http://localhost:9090/signup
  5. Login with the new user account http://localhost:9090/login
  6. Add a site account

(Optional) Browse local data base

  1. cd $GOPATH/src/paybook.com/lite
  2. sqlite3 data.db

Notes

Based on BeeGo frame work