Coder Social home page Coder Social logo

matbgn / django-joplin-vieweb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joplin-vieweb/django-joplin-vieweb

0.0 1.0 0.0 1.93 MB

License: MIT License

Shell 0.45% Python 30.15% CSS 16.02% JavaScript 42.44% HTML 10.23% Dockerfile 0.70%

django-joplin-vieweb's Introduction

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
  • Hyperlink preview in notes, on mouse hover: 2022-02-08 10-31-54

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_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_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"

To debug: docker-compose up on docker-compose.debug.py, then launch debug target "Python: attach" on vscode.

Thanks to azure for free domain name

Nom de domaine

django-joplin-vieweb's People

Contributors

gri38 avatar marph91 avatar matbgn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.