-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97a4038
commit efc8d34
Showing
5 changed files
with
81 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
max_line_length = 120 | ||
tab_width = 4 | ||
ij_continuation_indent_size = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
# podping-hivewatcher-js | ||
|
||
A watcher script for the hive backed podping network. (Javascript) | ||
|
||
Uses [@hiveio/dhive](https://yarnpkg.com/package/@hiveio/dhive) to communicate with the Hive blockchain. | ||
|
||
# Use | ||
|
||
1. Add `hive-watcher.js` and `index.html` to a web server | ||
1. Ex using node: | ||
1. Run `npm install http-server -g` | ||
2. Run `http-server` | ||
1. Will start a server at `http://localhost:8080/` by default | ||
2. Ex using Python: | ||
1. Run `python -m http.server` | ||
2. Will start a server at `http://localhost:8000` by default | ||
2. Open `index.html` in a web browser. Podpings will be added to list as they are received. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<head> | ||
<meta charset="utf-8"/> | ||
|
||
<title>Hive Watcher</title> | ||
<title>Hive Watcher</title> | ||
|
||
<script src="https://unpkg.com/@hiveio/dhive@0.14.12/dist/dhive.js"></script> | ||
<script src="hive-watcher.js"></script> | ||
</head> | ||
<body> | ||
<noscript>This site requires JavaScript to run.</noscript> | ||
<h1>Hive Posts</h1> | ||
<p>Parsing block #<span id="block_num">0</span></p> | ||
<ol id="posts"></ol> | ||
</body> | ||
<script src="https://unpkg.com/@hiveio/dhive@1.2.4/dist/dhive.js"></script> | ||
<script src="hive-watcher.js"></script> | ||
</head> | ||
<body> | ||
<noscript>This site requires JavaScript to run.</noscript> | ||
<h1>Hive Posts</h1> | ||
<p>Parsing block #<span id="block_num">0</span></p> | ||
<ol id="posts"></ol> | ||
</body> | ||
</html> |