BitShares Forum

Main => General Discussion => Topic started by: bytemaster on July 23, 2014, 10:28:16 pm

Title: Demo Wallet
Post by: bytemaster on July 23, 2014, 10:28:16 pm
Anyone care to setup a "demo wallet" accessible to everyone on the web?
Title: Re: Demo Wallet
Post by: cass on July 23, 2014, 11:14:34 pm
nobody?
Title: Re: Demo Wallet
Post by: toast on July 23, 2014, 11:15:38 pm
I'll do it after work
(ha ha "after" amirite)

edit: actually if someone else wants to please do
Title: Re: Demo Wallet
Post by: sfinder on July 23, 2014, 11:31:47 pm
Password to access the server (demo/demo) works fine.  Password to demo the wallet?

demo wallet is running @  http://54.191.7.103:8080/ (http://54.191.7.103:8080/).  for public access.

access user: demo  
password:demo

wallet password is "176173.com"

i will deposit 10btsx for demo test only. please try not to use more than 0.1 for testing .

in the mean time . account "dac.twitter" accept donation for demo testing purpose.


following are links to show you how to create a btsx account

http://wiki.bitshares.org/index.php/Bitshares-x-how-to#Creating_accounts (http://wiki.bitshares.org/index.php/Bitshares-x-how-to#Creating_accounts)

http://wiki.bitshares.org/index.php/Bitshares-x-how-to (http://wiki.bitshares.org/index.php/Bitshares-x-how-to)
Title: Re: Demo Wallet
Post by: toast on July 23, 2014, 11:41:08 pm
I would like to have a try. Please let me know all the requirements.

run a node and serve web_wallet via the web
Title: Re: Demo Wallet
Post by: sfinder on July 23, 2014, 11:48:32 pm
Ok. I will work on it after dinner . Will a linux box work? Which release and  on which network? Main or test?

I would like to have a try. Please let me know all the requirements.

run a node and serve web_wallet via the web
Title: Re: Demo Wallet
Post by: toast on July 23, 2014, 11:53:44 pm
Ok. I will work on it after dinner . Will a linux box work? Which release and  on which network? Main or test?

I would like to have a try. Please let me know all the requirements.

run a node and serve web_wallet via the web

main net, most recent stable
Title: Re: Demo Wallet
Post by: Empirical1 on July 24, 2014, 12:36:39 am
 +5% Good idea
Title: Re: Demo Wallet
Post by: sfinder on July 24, 2014, 12:55:48 am

working on it now. compiling ...................

please post the cmd to run web_wallet
Title: Re: Demo Wallet
Post by: bytemaster on July 24, 2014, 01:00:22 am

working on it now. compiling ...................

please post the cmd to run web_wallet

programs/web_wallet README   --- these instructions could be simplified...
Code: [Select]

Install node.js:

   http://nodejs.org/download/

Install Lineman and dependencies via the following commands:


    $ npm install -g lineman 
    $ npm install

Find more information here [https://travis-ci.org/linemanjs/lineman-angular-template](https://travis-ci.org/linemanjs/lineman-angular-template)


## Usage

1. Specify path to web_wallet/generated as htdocs in client's config.json. e.g.
```
{
  "rpc": {
    "rpc_user": "test",
    "rpc_password": "test",
    "rpc_endpoint": "127.0.0.1:0",
    "httpd_endpoint": "127.0.0.1:0",
    "htdocs": "/Users/dlarimer/dev/web_wallet/generated"
  },
  "default_peers": [
    "107.170.30.182:8764",
    "114.215.104.153:8764",
    "84.238.140.192:8764"
  ],
  "ignore_console": false,
  "logging": {
    "includes": [],
    "appenders": [],
    "loggers": []
  }
}
```

2. Start either bitshares_client (with --server option).
```
./bitshares_client --data-dir w1 --server --httpport 9989
```

3. Run lineman: $ lineman run

4. Open http://localhost:9989, if application is working it should load the idex page (may ask for credentials if client is using HTTP Basic Auth)

5. Now you can edit application's html, js and css files located in web_wallet/app.

Title: Re: Demo Wallet
Post by: dexinwong on July 24, 2014, 01:04:34 am
 :)
Title: Re: Demo Wallet
Post by: alt on July 24, 2014, 01:09:52 am

working on it now. compiling ...................

please post the cmd to run web_wallet
Code: [Select]
./bitshares_client --data-dir demo --server --httpport 8080 --rpcuser demo --rpcpassword demo
after first run, edit demo/config.json
change this line
    "httpd_endpoint": "127.0.0.1:0",
to
    "httpd_endpoint": "0.0.0.0:0",
Title: Re: Demo Wallet
Post by: sfinder on July 24, 2014, 01:42:32 am
got following error while running
sudo npm install -g lineman  ----- this one has no problem.
sudo npm install --- got following error

Code: [Select]
> lineman-less@0.0.1 postinstall /home/ubuntu/bitsharesx/programs/web_wallet/node_modules/lineman-less
> node script/postinstall.js

sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
 
npm ERR! weird error 127
npm ERR! not ok code 0


working on it now. compiling ...................

please post the cmd to run web_wallet
Code: [Select]
./bitshares_client --data-dir demo --server --httpport 8080 --rpcuser demo --rpcpassword demo
after first run, edit demo/config.json
change this line
    "httpd_endpoint": "127.0.0.1:0",
to
    "httpd_endpoint": "0.0.0.0:0",
Title: Re: Demo Wallet
Post by: sfinder on July 24, 2014, 01:47:11 am
fixed by following cmd

sudo apt-get install nodejs-legacy

got following error while running
sudo npm install -g lineman  ----- this one has no problem.
sudo npm install --- got following error

Code: [Select]
> lineman-less@0.0.1 postinstall /home/ubuntu/bitsharesx/programs/web_wallet/node_modules/lineman-less
> node script/postinstall.js

sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
 
npm ERR! weird error 127
npm ERR! not ok code 0


working on it now. compiling ...................

please post the cmd to run web_wallet
Code: [Select]
./bitshares_client --data-dir demo --server --httpport 8080 --rpcuser demo --rpcpassword demo
after first run, edit demo/config.json
change this line
    "httpd_endpoint": "127.0.0.1:0",
to
    "httpd_endpoint": "0.0.0.0:0",
Title: Re: Demo Wallet
Post by: sfinder on July 24, 2014, 02:22:25 am
Code: [Select]
./bitshares_client --data-dir demo --server --httpport 8080 --rpcuser demo --rpcpassword demo
Code: [Select]
cd ~/bitshares/bitsharesx/programs/web_wallet
lineman run

please check http://54.191.7.103:8080/ (http://54.191.7.103:8080/). everything look fine but demo/demo  doesn't work.

did i miss any steps ?
Title: Re: Demo Wallet
Post by: alt on July 24, 2014, 02:33:40 am
Do you change the path of htdocs?
this if my config
Code: [Select]
  "rpc": {
    "enable": false,
    "rpc_user": "",
    "rpc_password": "",
    "rpc_endpoint": "127.0.0.1:0",
    "httpd_endpoint": "127.0.0.1:0",
    "htdocs": "./htdocs"
my webpage path is here : /home/alt/workspace/bitsharesx/programs/web_wallet/generated/
so I run this
Code: [Select]
ln -sf  /home/alt/workspace/bitsharesx/programs/web_wallet/generated/  ./htdocs
Title: Re: Demo Wallet
Post by: bytemaster on July 24, 2014, 02:45:47 am
Code: [Select]
./bitshares_client --data-dir demo --server --httpport 8080 --rpcuser demo --rpcpassword demo
Code: [Select]
cd ~/bitshares/bitsharesx/programs/web_wallet
lineman run

please check http://54.191.7.103:8080/ (http://54.191.7.103:8080/). everything look fine but demo/demo  doesn't work.

did i miss any steps ?

Seems to be working for me now.
Title: Re: Demo Wallet
Post by: sfinder on July 24, 2014, 03:07:13 am
yep. it is working now . I will leave this server working from now on.  special thanks to alt's hint <grin>

demo wallet is running @  http://54.191.7.103:8080/ (http://54.191.7.103:8080/).  for public access.

access user: demo  
password:demo

wallet password is "176173.com"

Code: [Select]
./bitshares_client --data-dir demo --server --httpport 8080 --rpcuser demo --rpcpassword demo
Code: [Select]
cd ~/bitshares/bitsharesx/programs/web_wallet
lineman run

please check http://54.191.7.103:8080/ (http://54.191.7.103:8080/). everything look fine but demo/demo  doesn't work.

did i miss any steps ?

Seems to be working for me now.
Title: Re: Demo Wallet
Post by: blahblah7up on July 24, 2014, 07:56:03 am
Password to access the server (demo/demo) works fine.  Password to demo the wallet?
Title: Re: Demo Wallet
Post by: sfinder on July 24, 2014, 02:57:09 pm
Password to access the server (demo/demo) works fine.  Password to demo the wallet?

demo wallet is running @  http://54.191.7.103:8080/ (http://54.191.7.103:8080/).  for public access.

access user: demo  
password:demo

wallet password is "176173.com"

i will deposit 10btsx for demo test only. please try not to use more than 0.1 for testing .

in the mean time . account "dac.twitter" accept donation for demo testing purpose.


following are links to show you how to create a btsx account

http://wiki.bitshares.org/index.php/Bitshares-x-how-to#Creating_accounts (http://wiki.bitshares.org/index.php/Bitshares-x-how-to#Creating_accounts)

http://wiki.bitshares.org/index.php/Bitshares-x-how-to (http://wiki.bitshares.org/index.php/Bitshares-x-how-to)