Hi everyone I was thinking of creating a backend module that has functione for a note taking app (search, sort, etc). So anyone can implement a ui on top of it.

I have some basic understanding of rust (made a just-working chip-8 emulator). But I’ve never used SQL or other database.

Is this plausible? Is there a similar project that I can use as reference? What are the mistakes I should avoid?

  • BartyDeCanter@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 hours ago

    Plausible? Absolutely. The questions are what and why?

    For notes, it seems like most people have settled on one of three things: org-mode, markdown, or free form plain text. There are some closed source tools that use a proprietary format, but fuck them.

    So then the question becomes what does the backend do? Provide a way to query notes for links, topics, and todos? Keep a versioning system? Synchonization? Something else? Answer those questions and you have a project.

    For references, take a look at nb, Joplin, Logseq, org-mode, anytype.

  • calcopiritus@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 days ago

    Depending on what you do, it will probably only be a few lines of rust. Most of the complexity would be in the DB setup and SQL queries. Since you’ll probably use an HTTP server crate that will handle all of that for you.

    So, yes, it should be possible.

    Even if you don’t intend to make it a UI project. You should still do a shitty UI. Otherwise you will spend more time testing it than actually developing it.

  • terabyterex@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    2 days ago

    are you asking if someone would use it? probably not. sounds like a lot of work when someone can just use obsidian with plugins to get the ui they wanted

    • remustan37@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      Don’t really care if anyone would use it at the moment. My main goal right now is to improve my rust skills. And I guess there are limitations to how much ui you can change in obsidian.

      Also there are other contexts where a note taking like function would be needed. For example I was actually trying to make a note taking app for cosmic desktop which I can access from the Taskbar

  • kubica@fedia.io
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    It is difficult to imagine it without an approximate idea of the way of interaction with it.

    A common exercise in programming is creating a task list… Which by the way I just searched out of curiosity and I found this as first result, and doesn’t look so bad taking a first look https://github.com/dezoito/rust-todo-list