Skip to content

Commit

Permalink
Added request dependency and gitnore file
Browse files Browse the repository at this point in the history
  • Loading branch information
encloinc committed Jan 3, 2019
1 parent 6f6a963 commit 8c873dc
Show file tree
Hide file tree
Showing 5 changed files with 359 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checkTimeout": 30000,
"mattcoinApiUrl": "https://mattcoin.now.sh/api/v1/crypto",
"username": "your-username-here"
"username": "insert-username-here"
}
2 changes: 2 additions & 0 deletions miner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const request = require('request');
const crypto = require('crypto');
const fs = require('fs')
require('http').createServer().listen(3000)


const config = JSON.parse(fs.readFileSync('config.json', 'utf8'))
console.log(config.username)
Expand Down
3 changes: 3 additions & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"version": 1
}
346 changes: 346 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"description": "",
"main": "miner.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
, "start": "node miner.js" },
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node miner.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mtcscratch/miner.git"
Expand All @@ -15,5 +16,8 @@
"bugs": {
"url": "https://github.com/mtcscratch/miner/issues"
},
"homepage": "https://github.com/mtcscratch/miner#readme"
"homepage": "https://github.com/mtcscratch/miner#readme",
"dependencies": {
"request": "^2.88.0"
}
}

0 comments on commit 8c873dc

Please sign in to comment.