BitShares Forum

Main => General Discussion => Topic started by: spartako on December 26, 2014, 10:20:07 pm

Title: nodejs module for bitshares
Post by: spartako on December 26, 2014, 10:20:07 pm
I have written a simple rpc client in nodejs for bitshares.
https://github.com/spartako-bitshares/node-bitshares

you can install with:
Code: [Select]
npm install bitshares

Enjoy!
Title: Re: nodejs module for bitshares
Post by: arubi on December 28, 2014, 07:38:01 pm
Cute :)

Some rejects (if I may):

Nobody wants RPC credentials in cleartext in the process list. Users who explicitly run an RPC server should always set the parameters in config.json . Have your software look up these credentials from that file and use 'em.
No reason passing usernames and passwords in cleartext from commandline.
Title: Re: nodejs module for bitshares
Post by: spartako on December 28, 2014, 08:56:31 pm
Cute :)

Some rejects (if I may):

Nobody wants RPC credentials in cleartext in the process list. Users who explicitly run an RPC server should always set the parameters in config.json . Have your software look up these credentials from that file and use 'em.
No reason passing usernames and passwords in cleartext from commandline.

Thanks for your feedback!
I added this note in readme file:

Code: [Select]
Note: This command is used only for convenience.
For security reason I strongly suggest you to change ~/.Bitshares/config.json file and launch bitshares_client without parameters.
Title: Re: nodejs module for bitshares
Post by: svk on January 02, 2015, 01:12:18 pm
Good job Spartako!

For future reference if anyone's looking for a nodejs rpc client, I've also just published one that's slightly different from this one, see:

https://bitsharestalk.org/index.php?topic=11272.msg168882#msg168882

Main differences are: uses promises, does not prefetch all rpc commands so you need to find them on your own.