To start hacking on the GUI, install Node.js and run these commands:
$ npm install
$ npm start
Start another shell, navigate to the web wallet directory, and start the PTS client:
$ pts_client --server \
--rpcuser=test --rpcpassword=test \
--httpdendpoint=127.0.0.1:8800
The client finds the local GUI code and launches a web server, which
you can access by opening http://localhost:8800. You could also
achieve this by setting the htdocs
parameter in your config file.
As long as you keep npm start
running, the app will automatically be
recompiled (into the generated/
directory) whenever you make any
changes to the source files in app/
.
You will want to start by looking at app/js/app.coffee
and then
browsing the app/templates
and app/js/controllers
directories.
-
If you are using Debian or Ubuntu, you may need to install the
nodejs-legacy
package before you runnpm install
. -
The Lineman.js framework (http://linemanjs.com/) is responsible for most of the features in the development environment.