/Lupin

Primary LanguagePythonMIT LicenseMIT

Deta Runner for Lupin

Notable changes

Some features of Lupin requires to persist a dump of you Github repository. Deta only provides a read-only file system for your apps, and the worker on which your app run frequently switches.

Due to these limitations, some features were disabled:

  • Generation of MindMaps
  • Markdown Export (but this is natively supported by Logseq in 0.0.14)
  • Space repetition

I did not test the encryption because I am not interested in this feature.

Installation Guide for Deta Deployement

  1. Clone me: https://github.com/pomdtr/Lupin
  2. Fill your secrets
    1. Create a telegram bot
    2. Generate a Github token from https://github.com/settings/tokens
    3. mv sample.env .env
    4. Add your tokens to the envfile
  3. Configure Lupin using the config.ini file (mv config.sample.ini config.ini)
  4. Install deta and deploy your app
    1. Create an account in Deta
    2. Install the deta cli
    3. Create a new micro: 'deta new lupin'
    4. Add your credentials to your micro: deta update -e .env
    5. Deploy you app: deta deploy
  5. Configure the webhook
    1. curl --header 'Content-Type: application/json' --data '{"url": "<micro-url>/webhook"}' 'https://api.telegram.org/bot<your-telegram-bot-token>/setWebhook'
  6. Add a cron to deta if you want an automatically generated calendar
    1. deta cron set "1 day"

Original Readme

See https://github.com/akhater/Lupin/blob/master/readme.md