The Bitcoin-based virtual platform for organization and conduct a drawing of bitcoins.
The following dependencies are used in the project:
PHP version 5.6 or newer; MySQL Server 5.7
Clone this repository into your site directory
git clone https://github.com/vschst/bitcoin-lottery.git
To get the latest versions of the dependencies and to update the composer.lock
file, you should run
composer update
To update all the packages listed to the latest version, with npm do:
cd public/assets
npm update
For recursively bundle up all the required modules of the main.js
into a single file called bundle.js
use the browserify command:
browserify main.js -o js/bundle.js
You need to compile all Sass files from the scss
directory into CSS files in the css
directory.
For example, you can do this with Koala.
For initial setup, run all queries from the file setup.sql
.
Make sure that you have properly configured database, routes and email config.
For more information, see here.
Open the application/config/blockchain_api.php
file and change the xpub and api keys:
$config['xpub_key'] = ''; // Your xpub key
$config['api_key'] = ''; // Your api key