🤖 Виртуальный ассистент занимающийся анализом твоей жизни
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
SQL
bin
data
src
tests
.editorconfig
.eslintrc
.gitignore
.travis.yml
LICENSE
Procfile
README.md
codecov.yml
package-lock.json
package.json

README.md

ProstoDiary

Build Status dependencies Status devDependencies Status codecov Maintainability

Install

npm i
chmod +x bin/index 
Setup PostgreSQL 10.2+
* Create database ProstoDiaryDB
* Grant roles > SQL/roles.sql
* Create user table > SQL/table_users.sql
* Create entries table > SQL/table_entries.sql
Run Telegram Bot
/start

Usage

Checking Unit tests:

npm run test:watch

Run development:

#run graphql server

npm run dev

Run production:

npm start

Server Environments (needs update file .env in root project)

TOKEN={ Your telegram bot token like 1234567890:AAA-qwertyuiopasdfghjklzxcvbnmqwert }
HEROKU_NAME={ Your heroku server name }
SALT_PASSWORD={ User salt password }
HOST={ database host }
DATABASE={ database name }
DB_USER={ database username }
DBPORT={ database port }
PASSWORD={ database password }

# Optional variables
PLOTLY_LOGIN={ plotly login }
PLOTLY_TOKEN={ plotly token }
GOOGLE_MAPS_GEOCODING_API={ geocoding key }
GOOGLE_APPLICATION_CREDENTIALS={ one line stringify object } 

DIALOGFLOW_CREDENTIALS={ one line stringify object } 
# You can find your project ID in your Dialogflow agent settings https://dialogflow.com/docs/agents#settings
DIALOGFLOW_PROJECT_ID={ project_id }

Global Bot Environments

Name: ProstoDiary

Username: @ProstoDiary_bot

Telegram commands

/help

License:

goto Interactive Software

Licensed under the GPLv3 License.