How to mine Monero on Heroku for free

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@bl1nkr·
0.000 HBD
How to mine Monero on Heroku for free
![alt text](https://www.cryptocompare.com/media/19969/xmr.png?width=200)

It is actually pretty simple.  Using Coinhive, Github, Heroku and UptimeRobot you can setup a cloud-based NodeJs Miner.

1) Fork or Clone this Repository - https://github.com/bl1nkr/monero-miner

2) Run "npm start"

3) Create a (free) account on https://coin-hive.com/ and get your API Key under Settings / Sites & API Keys  (ex. OwZyZ3HVKjMeMTrodeXC2iZ7ZGY8eOdT)

4) Replace the API key in index.js (line 7) with your API Key

5) Create a (free) account on http://www.heroku.com

6) On Heroku create a new application

![alt text](https://github.com/bl1nkr/monero-miner/raw/master/images/1.png)

7) Add the following buildpacks 
- heroku/nodejs
- https://github.com/jontewks/puppeteer-heroku-buildpack.git

![alt text](https://github.com/bl1nkr/monero-miner/raw/master/images/2.png)
![alt text](https://github.com/bl1nkr/monero-miner/raw/master/images/3.png)

8) Connect your Heroku app to your GitHub repo and enable the automatic deployment feature

![alt text](https://github.com/bl1nkr/monero-miner/raw/master/images/4.png)

9) Verify that the solution builds 

![alt text](https://github.com/bl1nkr/monero-miner/raw/master/images/5.png)

10) The solution is basically a web server that does nothing  (https://my-monero-miner.herokuapp.com/) but behind the scenes is using the heroku server to mine monero

![alt text](https://github.com/bl1nkr/monero-miner/raw/master/images/6.png)

11) Login to your coin-hive account and verify you are receiving reward
-----------------
Note: After 30 minutes the heroku instance will go to sleep so be sure to sign up for another free service (https://uptimerobot.com/) which can ping your url every 5 minutes to make sure it stays up.
👍 , , , , , , , , , , , , ,