DEVTOME.COM HOSTING COSTS HAVE BEGUN TO EXCEED 115$ MONTHLY. THE ADMINISTRATION IS NO LONGER ABLE TO HANDLE THE COST WITHOUT ASSISTANCE DUE TO THE RISING COST. THIS HAS BEEN OCCURRING FOR ALMOST A YEAR, BUT WE HAVE BEEN HANDLING IT FROM OUR OWN POCKETS. HOWEVER, WITH LITERALLY NO DONATIONS FOR THE PAST 2+ YEARS IT HAS DEPLETED THE BUDGET IN SHORT ORDER WITH THE INCREASE IN ACTIVITY ON THE SITE IN THE PAST 6 MONTHS. OUR CPU USAGE HAS BECOME TOO HIGH TO REMAIN ON A REASONABLE COSTING PLAN THAT WE COULD MAINTAIN. IF YOU WOULD LIKE TO SUPPORT THE DEVTOME PROJECT AND KEEP THE SITE UP/ALIVE PLEASE DONATE (EVEN IF ITS A SATOSHI) TO OUR DEVCOIN 1M4PCuMXvpWX6LHPkBEf3LJ2z1boZv4EQa OR OUR BTC WALLET 16eqEcqfw4zHUh2znvMcmRzGVwCn7CJLxR TO ALLOW US TO AFFORD THE HOSTING.

THE DEVCOIN AND DEVTOME PROJECTS ARE BOTH VERY IMPORTANT TO THE COMMUNITY. PLEASE CONTRIBUTE TO ITS FURTHER SUCCESS FOR ANOTHER 5 OR MORE YEARS!

Devcoin Open Web Wallet configuration

This is a brief tutorial to explain how to install and setup the Devcoin Open Wallet, this document may be modified with the upcoming versions of the code.
First, you must read the technical specifications here: http://www.devtome.com/doku.php?id=thardferr_s_technical_log
Then you must download the source code of the application here: http://carlosdelatorre.com/wp-content/uploads/2014/03/Devcoin-Open-Web-Wallet-V0.2.zip
I uploaded all the code you need to setup your own wallet including Code Igniter, recaptcha class and the Google's 2auth class.
You can see a working version of this project here: http://cryptopayer.com/

Initial requirements covered

  • Auth script - We need a class that authenticates the user and provides a way to check if the user is still authenticated and timeout after N number of minutes.
    • I made a helper named auth_helper.php, you can find it in application/helpers with a lot of functions to cover all we need regarding security including session management, I didn't included a custom-made session handler because it's native to Code Igniter, to setup this feature you can edit the file config.php inside application/config, you must change the sess_expiration variable, but I did a way to know if the user is logged in including privileges:
$newdata = array(
                   	'idUser'  => $this->idUser,
                   	'privileges'     => $this->privileges,
                   	'loggedIn' => TRUE
               		);

			$this->session->set_userdata($newdata);
  • 2FA script - Google 2FA should really be a common feature on any site now days, this should be available on day 1 of any web wallet.
    • I used the phpgangsta script (http://www.phpgangsta.de/ ) to implement the Google 2FA, I adapted the script a little to be compatible with Code Igniter, to tell the truth, it was a little difficult to fulfill the task but for future developers I encapsulated the functionality in the auth_helper.php with a really easy calls.
  • Unit Tests - Must have unit tests required as part of the requirement with coverage over 85% to ensure bug free scripts.
  • Front End UI - Generic UI, simple to use.

Database configuration

First of all, you must create a database named as you want inside your MySQL server and run the script wallet.sql found in the route DB/Wallet, with that you'll have the all you need to store the information in the database.

When you got the tables in the database, you must edit the file named database.php, you can find it in the route application/config, you'll find the following:

$db['default']['hostname'] = '127.0.0.1';
$db['default']['username'] = 'root';
$db['default']['password'] = 'root';
$db['default']['database'] = 'yourDB';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;

You must change the information depending on your database setup

Json configuration

In order to use the Devcoin wallet, you must configure the application/config/json.php file to fit your configurations.
If you need help to configure your wallet you can use the following links:
http://www.devtome.com/doku.php?id=how_to_create_a_devcoin_node_in_a_vps_for_noobs
http://www.devtome.com/doku.php?id=communicating_with_devcon_wallet_using_php&s[]=php&s[]=devcoin

$config['user'] = 'YourUserName';
$config['password'] = 'InsanelyHardPassword';
$config['ip'] = '127.0.0.1';
$config['port'] = '8332';

Recaptcha configuration

You must configure the recaptcha script, the first step you must do is register yourself in this page: http://code.google.com/p/recaptcha/wiki/HowToSetUpRecaptcha it will give you two keys, you must insert them in the recaptcha.php file found in application/config

Mail configuration

You must edit the email.php file inside application/config route indicating the basic information of the mail server and the body of the emails.
(Sometimes the e-mail reaches the spam carpet, but it's normal)

Final notes

With this configurations should be enough to run properly the first version of the wallet and maybe further releases.
Devtome | Devcoin | Open Source


QR Code
QR Code devcoin_open_web_wallet_configuration (generated for current page)
 

Advertise with Anonymous Ads