This is a small UI for the https://coin-hive.com/ mining API.
A working example of the development branch can be found here: www.sbhmn.de/miner/index.html Feel free to mine some hashes! ;)
These instructions will get you a copy of the project up and running on your local machine or server.
Download or clone this repository and copy its contents over to your web folder
<?php $dbUser = "<DB USER>"; $dbPass = "<DB PASS>"; $dbName = "<DB Name>"; $coinHiveSecret="<Secret>";
Replace the placeholders with your database credentials.
The next step is to fill in your '$coinHiveSecret'.
To find it log in to your coinhive account and click
Setting on the top right corner then click
Sites & API Keys and copy your
Secret Key (private) and replace
<Secret> with it.
The last step is to configure your sitekey.
scripts/miner.js and replace the key in this line
var siteKey = "IQHaechLpoNlho4NmXatRn4iPyQEhDmP"; //Change to your address
Site Key (public).
If you liked the project and you want to buy me a beer, you can do so by sending monero to the walllet address below.
All monero recieved on this wallet will be transformed into beer.
Or get over at https://sbhmn.de/miner/ and donate a bit of your sweet CPU power.