Skip to content

mrsuh/rent-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rent notifier

Screen

Installation

sh bin/deploy.sh
set parameters in a config/config.yml

Load fixtures

bin/fixture config/config.yml /path/to/fixtures/dir

Compilation

sh bin/compile.sh

Run

bin/api config/config.yml
bin/telegram config/config.yml
bin/vk config/config.yml

Configuration

config.config.yml

#server api
api.listen: '127.0.0.1:8080'
api.prefix: 'api/v1'

#server telegram
telegram.listen: '127.0.0.1:8081'
telegram.token: 'telegram_token'
telegram.prefix: 'telegram_prefix'

#server vk
vk.listen: '127.0.0.1:8082'
vk.token: 'vk_token'
vk.confirm_secret: 'secret'
vk.prefix: 'vk_prefix'

log.file: '/Users/newuser/web/go/src/rent-notifier/file.log'
#database
database.dsn: localhost:5000

Set telegram webhook

curl -X POST —data '{"url": "https://yourdomain.ru/{your_bot_token}/webhook"}' -H "Content-Type: application/json" "https://api.telegram.org/bot{your_bot_token}/setWebhook"

Releases

No releases published

Packages

No packages published