Skip to main content

A Django app to view your Joplin notes online.

Project description

joplin-vieweb

A simple web viewer for Joplin app
View on github

Purpose

I'm going to use Joplin as a notes application (instead of OneNote).
It's a long time I wanted for something like Joplin: opensource, not coupled to a web giant, and without illimited storage: storage has a price, we should pay for it.

This quick dev is to provide an online view of my Joplin notes.
It's running on a "Django server", running beside a configured & running Joplin terminal app.

A screenshot

oplin-vieweb-screenshot

Features and not(-yet?) features

Yes it does ❤

  • Protect joplin-vieweb access by login
  • Display notebooks, and notes
    • images
    • attachments
  • code syntax highlight
  • Add a table of content if note contains headers
  • Display tags, and notes linked.
  • Joplin sync:
    • image
    • Background periodic joplin sync
    • Manual trigged sync, with notebooks and tag refresh
  • Public link if note has public tag
    image
  • Option to number (or not) header in notes:
    image
  • Tag edition: add / remove / create tags in notes: image Once tags edited, a little reminder not to forget to synchronize Joplin:
    image
  • Checkbox list changes can be saved to notes. See this release note.
  • Note edition / deletion, with support of image paste, and image / attachment drag&drop. image

image

  • Note creation joplin_create_note
  • Notebook edition: create / rename / delete notebook_edition
  • Notes history: list of the latest notes consulted, to be able to open them quickly, or pin them: demo_joplin_notes_history
  • Tabs in notes (not displayed in joplin applications). Syntax here. image

No it doesn't (yet?) 💔

  • Sort notebooks nor notes
  • Move note or notebook from one notebook to another.
  • No specific handling for todos.
  • Search for notes or tags

Installation, configuration

  1. Install Joplin terminal.
    Configure it and start it.

  2. Install joplin-vieweb with pip install django-joplin-vieweb

  3. Create a django project and configure it:

  4. Add "joplin_vieweb" to your INSTALLED_APPS settings.py like this:

INSTALLED_APPS = [
    ...
    'joplin_vieweb',
    ...
]
  1. Add some variable in your project settings.py:

    # Joplin variables
    JOPLIN_SERVER_URL="http://127.0.0.1"
    JOPLIN_SERVER_PORT=41184
    JOPLIN_SERVER_TOKEN="1234567890987654321"
    JOPLIN_RESSOURCES_PATH="/home/pi/.config/joplin/resources/"
    JOPLIN_LOGIN_REQUIRED=True # set to True only if you require a logged user for accessing the notes
    JOPLIN_SYNC_PERIOD_S=86400 # once a day
    JOPLIN_SYNC_INFO_FILE="/home/pi/.config/joplin/joplin_vieweb_sync_info"
    JOPLIN_NOTES_HISTORY_DEPTH = 10
    
  2. If you set JOPLIN_LOGIN_REQUIRED=True

    1. python manage.py migrate
    2. python manage.py createsuperuser
    3. Add the 'accounts/' path in urls.py (see next point)
  3. Include the joplin_vieweb URLconf in your project urls.py like this:

        path('joplin/', include('joplin_vieweb.urls')),
        path('accounts/', include('django.contrib.auth.urls')), # only if JOPLIN_LOGIN_REQUIRED=True
    
  4. Start the development server and visit http://127.0.0.1:8000/joplin

More advanced guides

Read here the step-by-step full install: joplin-vieweb with daphne with nginx with TLS with Let's Encrypt.

Why not joplin-web?

I tried for some hours to make it run. The master branch was easy to setup, but work is still in progress.
And the full featured "vuejs" branch: I just didn't succeed to set it up (neither with node nor with docker).... probably a matter of versions with my raspberry distribution.
➡ I decided to do my simple own product, for my simple need: view my notes online.
Thanks for joplin-api that helped me !

For dev: how to setup a dev server around this "package"

Execute script setup_dev_env.sh
Then: check joplin ressource path in dev_server/dev_server/settings.py (STATICFILES_DIRS), and ALLOWED_HOSTS.
If you choose JOPLIN_LOGIN_REQUIRED=True, then: :add

urlpatterns = [
    ...
    path('accounts/', include('django.contrib.auth.urls')),
]

Then:

. venv/bin/activate
cd dev_server
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver 0:8000

Thanks to azure for free domain name

Nom de domaine

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-joplin_vieweb-1.15.1.tar.gz (369.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_joplin_vieweb-1.15.1-py3-none-any.whl (401.3 kB view details)

Uploaded Python 3

File details

Details for the file django-joplin_vieweb-1.15.1.tar.gz.

File metadata

  • Download URL: django-joplin_vieweb-1.15.1.tar.gz
  • Upload date:
  • Size: 369.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.0

File hashes

Hashes for django-joplin_vieweb-1.15.1.tar.gz
Algorithm Hash digest
SHA256 6c4ce372cfb15218c80adb2405700bb3e8f0b88c5aa3827217eb9e80e74229ca
MD5 b8bee4788c1239861d2abb45ca65876c
BLAKE2b-256 c7fae3dd3a7dda1770bee2c3963c31ebcd4eef4accf3fef22d2a013c9636a3ce

See more details on using hashes here.

File details

Details for the file django_joplin_vieweb-1.15.1-py3-none-any.whl.

File metadata

  • Download URL: django_joplin_vieweb-1.15.1-py3-none-any.whl
  • Upload date:
  • Size: 401.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.0

File hashes

Hashes for django_joplin_vieweb-1.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42e2ed3cedb1bb71702df4a47cb110d0238840fba4d38e0d5fe0684590890cf5
MD5 438fc680262f9ffd37aae0365c13b00a
BLAKE2b-256 94600135c14fe1d9e568750134c326e4ad7b06a4353e2661de576d98566ba1be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page