updates on some notes

This commit is contained in:
2026-01-25 15:06:43 +00:00
parent 0b042238b2
commit 56feb90d9a
4 changed files with 17 additions and 3 deletions

View File

@@ -41,3 +41,18 @@ The project is packaged as a Docker container, making it easy to deploy. You can
docker logs -f org_backend
#+end_src
* Bruno
Bruno is used for testing the backend API endpoints. It is a simple HTTP client that allows you to send requests to the backend and view the responses. I used the OpenAPI specification to generate Bruno tests for each endpoint.
* Future?
** Integration with ~notes.zainezq.com~
As the API is primarily used by ~zainezq.com~, I want to think of ways that ~notes.zainezq.com~ could also use it. This website is used to store all my notes, and they are exported using ~org-publish~ in Emacs. Perhaps I could write an Emacs Lisp package that interacts with the backend API to store and retrieve notes.
Flow of how a note would be written:
1. User writes a note in ~notes.zainezq.com~ as org mode.
2. When the note is saved, a POST request is sent to the backend API with the note content.
3. The backend API stores the note in the database.
4. This will trigger a function that republishes the notes website to include the new note.
**Need to think more about this.**