Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Interested in a node-webkit implementation of GUI.  (Read 2729 times)

0 Members and 1 Guest are viewing this topic.

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Interested in a node-webkit implementation of GUI.
« on: April 18, 2014, 10:22:56 AM »

As the GUI is delayed, I'm interested in a GUI made in pure js.
The benefit:
1. quick
The html+css+js makes it very easy and quick to write GUI. I think I can make a very simple prototype in a week if I can have some spare time as long as JSON-RPC interface is ready.
2. cross platform
Even on mobile platform like ios and android.
3. responsive page design
This makes it look and feel well on different devices.
4. easy
JS is easier than C in my opinion.
« Last Edit: April 18, 2014, 10:41:02 AM by zhangweis »
BTC:15hCQrFMpSxcTSDVYgchajEqGF15XqW1M9
Weibo:http://weibo.com/zhangweis

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Interested in a node-webkit implementation of GUI.
« Reply #1 on: April 18, 2014, 10:27:10 AM »
We can even setup a blockchain-like online wallet service using coinpunk code. But I don't know whether running a service like this is legal or not (considering lotto.).
« Last Edit: April 18, 2014, 11:45:03 PM by zhangweis »
BTC:15hCQrFMpSxcTSDVYgchajEqGF15XqW1M9
Weibo:http://weibo.com/zhangweis

Offline toast

Re: Interested in a node-webkit implementation of GUI.
« Reply #2 on: April 18, 2014, 01:06:59 PM »
+1 I have been advocating for this. Define that rpc api for us dan!

Sent from my SCH-I535 using Tapatalk

Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline sudo

  • Hero Member
  • *****
  • Posts: 2244
    • View Profile
  • BTS: ags
Re: Interested in a node-webkit implementation of GUI.
« Reply #3 on: April 18, 2014, 04:51:26 PM »
 +5% 

user experience optimization  is very important

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Interested in a node-webkit implementation of GUI.
« Reply #4 on: April 19, 2014, 01:31:58 PM »
Initial prototype (http://114.215.104.153:8081/main.html), repository:(https://github.com/zhangweis/bts-ui/):
  • Tested only on chrome but could possibly work on ios and android.
  • Angularjs based.
  • Responsive design (layout from coinpunk)
  • Page switch between transactions and send.
  • Really not good at page design and need some help.

To do:
node+webkit packaging (should not be hard, but automation could be)
make data layer and simulate JSON/RPC
« Last Edit: April 19, 2014, 02:01:31 PM by zhangweis »
BTC:15hCQrFMpSxcTSDVYgchajEqGF15XqW1M9
Weibo:http://weibo.com/zhangweis

Offline sudo

  • Hero Member
  • *****
  • Posts: 2244
    • View Profile
  • BTS: ags
Re: Interested in a node-webkit implementation of GUI.
« Reply #5 on: April 19, 2014, 04:59:20 PM »
Initial prototype (http://114.215.104.153:8081/main.html), repository:(https://github.com/zhangweis/bts-ui/):
  • Tested only on chrome but could possibly work on ios and android.
  • Angularjs based.
  • Responsive design (layout from coinpunk)
  • Page switch between transactions and send.
  • Really not good at page design and need some help.

To do:
node+webkit packaging (should not be hard, but automation could be)
make data layer and simulate JSON/RPC

 +5% +5%

clout

  • Guest
Re: Interested in a node-webkit implementation of GUI.
« Reply #6 on: April 19, 2014, 05:17:22 PM »
this is a great idea

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Interested in a node-webkit implementation of GUI.
« Reply #7 on: April 20, 2014, 12:39:03 AM »
Tested on android and it works well.
You can shrink the chrome browser window to see its mobile action.
BTC:15hCQrFMpSxcTSDVYgchajEqGF15XqW1M9
Weibo:http://weibo.com/zhangweis

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
Re: Interested in a node-webkit implementation of GUI.
« Reply #8 on: April 21, 2014, 07:56:54 AM »
Great idea, what is your plan? Create a desktop application using node webkit that interacts with a local / own network rpc server? Or a centralize solution ?
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Interested in a node-webkit implementation of GUI.
« Reply #9 on: April 21, 2014, 08:47:37 AM »
Great idea, what is your plan? Create a desktop application using node webkit that interacts with a local / own network rpc server? Or a centralize solution ?

node webkit that interacts with a local / own network rpc server. For an online wallet, I think we may have legal issues with running such a service.
BTC:15hCQrFMpSxcTSDVYgchajEqGF15XqW1M9
Weibo:http://weibo.com/zhangweis

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
Re: Interested in a node-webkit implementation of GUI.
« Reply #10 on: April 22, 2014, 10:21:55 AM »
That is what I thought, you could have a desktop and a server version (own home / network server), so mobile / tablets can connect.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Interested in a node-webkit implementation of GUI.
« Reply #11 on: April 22, 2014, 10:03:19 PM »
That is what I thought, you could have a desktop and a server version (own home / network server), so mobile / tablets can connect.
Yes, exactly. I don't know if they provide RPC on HTTP. If they don't, things will be a bit difficult as I have to use node/phonegap to setup tcp connections. I'm still trying to find some documents on their RPC interfaces.
BTC:15hCQrFMpSxcTSDVYgchajEqGF15XqW1M9
Weibo:http://weibo.com/zhangweis

Offline crazybit

  • Sr. Member
  • ****
  • Posts: 416
    • View Profile
Re: Interested in a node-webkit implementation of GUI.
« Reply #12 on: April 23, 2014, 12:58:50 AM »
Bitshare X implements RPC interface


Offline alt

Re: Interested in a node-webkit implementation of GUI.
« Reply #13 on: April 23, 2014, 01:02:33 AM »
As the GUI is delayed, I'm interested in a GUI made in pure js.
The benefit:
1. quick
The html+css+js makes it very easy and quick to write GUI. I think I can make a very simple prototype in a week if I can have some spare time as long as JSON-RPC interface is ready.
2. cross platform
Even on mobile platform like ios and android.
3. responsive page design
This makes it look and feel well on different devices.
4. easy
JS is easier than C in my opinion.
Great!  +5% +5% +5%

Offline zhangweis

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Interested in a node-webkit implementation of GUI.
« Reply #14 on: April 23, 2014, 08:17:13 PM »
Pulled lastest bitshares code finally build it on my debian box.
Excited to see that the latest bts_xt_client supports --server and uses ./htdocs as http root. This makes it easier to put my code just at ./htdocs. Will play with that if I find some time.
RPC tricks:
You need to go through the below steps to send xts:
1. openwallet()
2. walletpassphrase('<<send password>>')
3. sendtoaddress('address', {"amount":<number>,"unit":0},'comment')

From RPC commands, I don't find how to retrieve latest transactions but I can try to simulate it by directly using getblock and get_transaction.
My config.json:
{"rpc":{"rpc_user":"user","rpc_password":"pwd","rpc_endpoint":"0.0.0.0:0","httpd_endpoint":"0.0.0.0:9091","htdocs":"./htdocs"},"ignore_console":false}
« Last Edit: April 23, 2014, 08:21:39 PM by zhangweis »
BTC:15hCQrFMpSxcTSDVYgchajEqGF15XqW1M9
Weibo:http://weibo.com/zhangweis

 

Google+