Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/On1x/HiddenEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
On1x committed Sep 20, 2017
2 parents 6364138 + 2c5547a commit fd9602b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## Что такое HiddenEngine?
Hidden Engine это легкий движок для сайтов и приложений специализированных для блокчейна Steem/Golos.

## Статус разработки
Текущая версия: v0.0.5

Веб-страница: https://goldvoice.club/@hiddenengine/

### Что сделано в последнем релизе
Expand All @@ -15,7 +17,9 @@ Hidden Engine это легкий движок для сайтов и прило

### Планы на будущее
Написать механизм автоматического курирования постов авторов из списка с указанием задержки во времени и силой голоса.

Отдельный модуль для делегатов: выполнение publish_feed, слежение за пропущенными блоками, интерфейс для запуска/паузы на подпись блоков.

Модуль E-mail оповещений, очередь писем.

## Разработка
Expand Down Expand Up @@ -45,17 +49,24 @@ HiddenEngine при установке запишется в автозапус
cd ~
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh
bash install_nvm.sh
source ~/.profile
nvm ls-remote
nvm install 8.5.0
node -v
sudo apt-get install nodejs-legacy
npm install npm -g
source ~/.profile
git clone https://github.com/On1x/HiddenEngine.git && cd HiddenEngine && npm install
npm install pm2 -g
git clone https://github.com/On1x/HiddenEngine.git
cd HiddenEngine
apt-get install openssl
mkdir ssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./ssl/ssl.key -out ./ssl/ssl.crt -subj \"/C=HE/ST=HE/L=HE/O=HE\"
npm install
```
## Управление состоянием приложения
```
npm stop
npm start
npm restart
pm2 monit hiddenengine
```
```
2 changes: 1 addition & 1 deletion class/global.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node
"use strict";
var arr={"json_file":"./global.json","admin":{"login":"admin","password":"21232f297a57a5a743894a0e4a801fc3"}};
module.exports=arr;
module.exports=arr;
3 changes: 1 addition & 2 deletions class/watchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ module.exports=class he_watchers{
global.he.counters.accounts=0;
global.he.counters.steem_queue=0;
global.he.counters.golos_queue=0;
global.he.admin={'login':'admin','password':'admin'};
global.he.watch_manager={'steem':1,'golos':1,'save_global':1};
_this.start();
}
Expand Down Expand Up @@ -331,4 +330,4 @@ module.exports=class he_watchers{
}
setTimeout(function(){_this.steem_queue()},1000);
}
}
}
2 changes: 1 addition & 1 deletion package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"author": "Anatoly Piskunov (https://github.com/On1x)",
"license": "MIT",
"scripts": {
"preinstall": "apt-get install openssl && mkdir ssl && openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./ssl/ssl.key -out ./ssl/ssl.crt -subj \"/C=HE/ST=HE/L=HE/O=HE\" && pm2 startup",
"start": "pm2 restart index.js --name hiddenengine && pm2 save && pm2 monit hiddenengine",
"preinstall": "pm2 startup",
"start": "pm2 start index.js --name hiddenengine && pm2 save && pm2 monit hiddenengine",
"stop": "pm2 stop hiddenengine",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -28,4 +28,4 @@
"contributors": [
"Anatoly Piskunov (https://github.com/On1x)"
]
}
}

0 comments on commit fd9602b

Please sign in to comment.