Secretary: your personal assistant
About
Text diary, food analyze, health watcher, sleep analyze
Install
Dev only
npm i
chmod +x scripts/prepare
scripts/prepare
For HTTPS
Add host for local development
127.0.0.1 bot.lh
mkdir cert;
openssl req -x509 -newkey rsa:2048 -keyout cert/localhost.key -out cert/localhost.crt -days 365 -nodes -subj "/CN=bot.lh" -addext "subjectAltName=DNS:bot.lh"
For MacOS add certificate to trusted
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain cert/localhost.crt
Run dev server
npm run dev:secure
ENVIRONMENTS
Create a .env file and write:
TELEGRAM_TOKEN
TELEGRAM_DOMAIN
TELEGRAM_MINI_APP
SERVER_HOST
TELEGRAM_APP_URL
Tests
Unit
npm run test:unit [-- --watch]
#npm run test:unit [-- --match='config']
Tools
Package upgrade
ncu -u
Fix lint
npm run lint -- --fix --quite
Show dependencies graph
brew install graphviz
npm run report:dependency
Validate dependencies
npm run lint:dependency
docs only Dev
Install
sudo gem install bundler jekyll
cd docs
bundle install
Run
npm run dev:docs
Docker Image
docker compose --env-file .env up --build
Run Telegram Bot Dev
docker compose --env-file .env up -d
Возможности управления системой
1) something text - Уведомление
2) ? something search - Поиск
3) ! something execute - Выполнение поручения
Make with Manifest GIC DAO.