Coder Social home page Coder Social logo

rjmacarthy / decrediton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from decred/decrediton

0.0 3.0 0.0 4.92 MB

Cross-platform GUI for Decred.

License: ISC License

JavaScript 79.74% HTML 0.43% Protocol Buffer 2.93% Shell 0.30% Python 0.02% C++ 0.64% CSS 15.93%

decrediton's Introduction

decrediton

Build Status ISC License

decrediton is a cross-platform GUI for decred written in node.js using Electron.

Installation

Currently decrediton is available on Windows, Linux, and macOS.

Decrediton will NOT use or in any way disrupt the wallet file you may already be using at this time.

Download the decrediton release for your operating system on decred/decred-binaries.

On macOS, Ubuntu (14.04 and later), and recent Debians, there should be no additional dependencies needed.

On Fedora or similar distros you may need to install the libXScrnSaver package if you see this error:

error while loading shared libraries: libXss.so.1

You can install this on a recent Fedora with the command:

sudo dnf -y install libXScrnSaver

On linux you will need to decompress the package:

tar -xvzf decrediton-X.X.X.tar.gz

and then run the file:

./decrediton

This will start dcrd and dcrwallet for you.

On macOS, double-click the .dmg file, drag the .app to your Applications folder. Double click on Decrediton.app to start.

From there follow the on screen instructions to setup your wallet.

Options

When running a release version, there are a few options available.

To see additional debug information (including the output of dcrd and dcrwallet) run:

decrediton --debug

To pass additional arguements to dcrwallet (such as to increase the logging level run:

decrediton --extrawalletargs='-d=debug'

Developing

Due to potential compatibility issues, for now, all work should be done with node v6.9.5 and electron 1.4.15. The recommended way to install node is using nvm.

This has primarily been tested on Linux at the moment although OSX should work similarly.

git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
. ~/.nvm/nvm.sh
nvm install v6.9.5
nvm use v6.9.5
nvm alias default v6.9.5
npm install -g npm
cd

Adjust the following steps for the paths you want to use.

go get -u -v github.com/decred/dcrd
go get -u -v github.com/decred/dcrwallet
go get -u -v github.com/Masterminds/glide
cd $GOPATH/src/github.com/decred/dcrd
glide i
go install . ./cmd/dcrctl/
cd ../dcrwallet
glide i
go install
mkdir code
cd code
git clone https://github.com/decred/decrediton.git
cd decrediton
npm install
mkdir app/bin/
cp `which dcrd` app/bin/
cp `which dcrctl` app/bin/
cp `which dcrwallet` app/bin/
npm run dev

Note about developing with testnet

The first time you run with testnet, you may get a "Failed to connect wallet by deadline error". If so, make sure you change your config.json:

"network": "testnet",

Using existing dcrd and dcrwallet daemons

During development it may be useful to run the dcrd and dcrwallet daemons separately from decrediton (to speed up start up time or to test with different versions of the back-ends).

To do that, change the following directives on your config.json file:

"daemon_skip_start": true,
"wallet_skip_start": true,

This will prevent decrediton from starting the daemons. You can then start them manually:

dcrd --testnet -u USER -P PASSWORD --rpclisten=127.0.0.1:19119 --rpccert=$HOME/.dcrd/rpc.cert

dcrwallet --testnet --rpcconnect=127.0.0.1:19119 --grpclisten=127.0.0.1:19121 --noinitialload --tlscurve=P-256 --onetimetlskey --appdata=~/.config/decrediton

Or on MacOS:

dcrd --testnet -u USER -P PASSWORD --rpclisten=127.0.0.1:19119 --rpccert=$HOME/Library/Application\ Support/Dcrd/rpc.cert

dcrwallet --testnet --rpcconnect=127.0.0.1:19119 --grpclisten=127.0.0.1:19121 --noinitialload --tlscurve=P-256 --onetimetlskey --appdata=$HOME/Library/Application\ Support/decrediton

Windows

On windows you will need some extra steps to build grpc. This assumes you are using msys2 with various development tools (copilers, make, ect) all installed.

Install node from the official package https://nodejs.org/en/download/ and add it to your msys2 path. You must install the same version of node as required for Linux and OSX (6.9.5).

Install openssl from the following site: https://slproweb.com/products/Win32OpenSSL.html

From an admin shell:

npm install --global --production windows-build-tools

Then build grpc as described above.

Building the package

To build a packaged version of decrediton (including a dmg on OSX and exe on Windows), follow the development steps above. Then build the dcr command line tools:

go get -u -v github.com/decred/dcrd
go get -u -v github.com/decred/dcrwallet
go get -u -v github.com/Masterminds/glide
cd $GOPATH/src/github.com/decred/dcrd
glide i
go install . ./cmd/dcrctl/
cd ../dcrwallet
glide i
go install
cd
cd code/decrediton
mkdir bin
cp `which dcrd` bin/
cp `which dcrctl` bin/
cp `which dcrwallet` bin/
npm install
npm run package

Building release versions

Linux

You need to make sure you have the following packages installed for the building to work:

  • icns2png
  • graphicsmagick
  • rpm-build
npm run package-linux

After it is finished it will have the built rpm, deb and tar.gz in the releases/ directory.

Docker

A docker file for building decrediton is also provided. With no options it builds for linux on amd64 although it is possible to attempt OSX or arm builds (neither of which have been tested).

$ ./build-docker.sh <OS> <ARCH>

Contact

If you have any further questions you can find us at:

  • irc.freenode.net (channel #decred)
  • webchat
  • forum.decred.org
  • decred.slack.com

Issue Tracker

The integrated github issue tracker is used for this project.

License

decrediton is licensed under the copyfree ISC License.

decrediton's People

Contributors

alexlyp avatar dajohi avatar go1dfish avatar jcvernaleo avatar jolan avatar jrick avatar karamble avatar kmaschta avatar lukebp avatar matheusd avatar peterzen avatar sndurkin avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.