From 507de91fe50e5101345f821cb314532c9e028dd2 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Fri, 10 Jan 2014 01:55:47 -0300 Subject: [PATCH 1/3] Transaction Page: look and feel. Parser and show data from API --- public/views/transaction.html | 121 ++++++++++++++++++++++++++-------- 1 file changed, 95 insertions(+), 26 deletions(-) diff --git a/public/views/transaction.html b/public/views/transaction.html index b5c519b..e37226e 100644 --- a/public/views/transaction.html +++ b/public/views/transaction.html @@ -1,32 +1,101 @@
-
From 145a7208a0d913ff96cbfb0f8838a1e48b9185b6 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Fri, 10 Jan 2014 02:14:56 -0300 Subject: [PATCH 2/3] completed readme.md for api prerequisites --- README.md | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ca751e3..9127bf9 100644 --- a/README.md +++ b/README.md @@ -45,26 +45,34 @@ $ npm install -g bower http://localhost:3000 - - - - -## Prerequisites - Get bitcore from github repository: - $ git clone https://github.com/bitpay/bitcore.git - $ cd bitcore - $ npm install - - Run sync from mystery repository: - $ utils/sync.js - -check utils/sync.js --help for options. - - ## API A REST API is provided at /api. The entry points are: +### Prerequisites + Get bitcore from github repository: + + $ git clone https://github.com/bitpay/bitcore.git + + $ cd bitcore + + $ npm install + + Then create a symbolic link from this to your mystery repository. We need to + use bitcore from github, not with npm for now: + + $ cd mystery/node_modules + + $ rm -R bitcore + + $ ln -s /bitcore + + Run sync from mystery repository (to save blocks in MongoDB): + + $ utils/sync.js + + Check utils/sync.js --help for options. + ### Blocks ``` /api/block/[:hash] From e10e5fa2c0673fbcbcd716b9b44687d2e8a06059 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Fri, 10 Jan 2014 02:22:06 -0300 Subject: [PATCH 3/3] fix link back to blockpage --- public/views/transaction.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/views/transaction.html b/public/views/transaction.html index e37226e..c047b44 100644 --- a/public/views/transaction.html +++ b/public/views/transaction.html @@ -64,7 +64,7 @@ Reward From Block - Need height to show (it links to block page) + Need height to show (it links to block page)