Commit 3c9438fe authored by inertia's avatar inertia

#4 restructured get_post_details JS tutorial

parent 5f558799
This diff is collapsed.
......@@ -6,14 +6,13 @@
"scripts": {
"start": "webpack && node ./index.js",
"test": "echo \"Error: no test specified\" && exit 1",
"dev-server":
"./node_modules/.bin/webpack-dev-server --mode development --content-base ./public --port 3000"
"dev-server": "./node_modules/.bin/webpack-dev-server --mode development --content-base ./public --port 3000"
},
"author": "",
"license": "ISC",
"dependencies": {
"bootstrap": "^4.1.3",
"dsteem": "^0.10.1",
"@hivechain/dhive": "^0.13.4",
"koa": "^2.5.3",
"koa-static": "^5.0.0",
"remarkable": "^1.7.1"
......
const dsteem = require('dsteem');
const dhive = require('@hivechain/dhive');
const Remarkable = require('remarkable');
let opts = {};
......@@ -8,7 +8,7 @@ opts.addressPrefix = 'STM';
opts.chainId =
'0000000000000000000000000000000000000000000000000000000000000000';
//connect to server which is connected to the network/production
const client = new dsteem.Client('https://api.steemit.com');
const client = new dhive.Client('https://api.openhive.network');
//fetch list of trending posts
async function main() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment