- clone source code
- download the latest NODE.JS framework
- install dependencies:
npm install
- start bot with:
npm start
There are 2 ways to pass secret tokens to the app:
-
Through npm params:
npm start "bot_token" "zomato_token" "translator_token"
-
Create an .env file in the root directory.
YANDEX_TOKEN="trnsl.1.1.sdfdsfb58.3e987248"
ZOMATO_TOKEN=cc12312321323133344543c7
BOT_TOKEN=333333:AAGSWJFDLKJII46_F0sPs
Zomato token you can get here: https://developers.zomato.com/api
Bot token is producing by Telegram Bot Father.
Yandex Translator token you can generate here: https://translate.yandex.com/developers/keys
npm test
- Create a dyno with nodejs
- Put the token variables in settings
- Deploy from a git repo