From f1a702f5e29fbb129ce85dcc32cb47b00db1a1e8 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Mon, 3 Feb 2020 17:38:02 +0100 Subject: [PATCH] Add biblioteka + podman posts --- source/blog/biblioteka.rst | 106 +++++++++++++++++++++++++++++++++++++ source/blog/podman.rst | 19 +++++++ 2 files changed, 125 insertions(+) create mode 100644 source/blog/biblioteka.rst create mode 100644 source/blog/podman.rst diff --git a/source/blog/biblioteka.rst b/source/blog/biblioteka.rst new file mode 100644 index 0000000..9c49dad --- /dev/null +++ b/source/blog/biblioteka.rst @@ -0,0 +1,106 @@ +.. post:: 2020.02.03 + :tags: project + :category: web + :author: vladan + :location: Linköping + +========== +Biblioteka +========== + +Biblioteka (Library in the many languages of Yugoslavia) is a library +management software written in multiple backend and frontend languages and +technologies. + +The most basic features that are implemented are listed below. + +application features / structure +================================ + +- List of all books (paginated). + - Provide filters by author, language, publisher ... + +- A search module that will filter by author, language, publisher. One query + that will search through all possible parameters. + +- A classical user management module, with login, profile, list of landed + books, wishlist, etc. + +Endpoints +--------- + +.. table:: + :align: left + + +---------------------------+--------+-------------------------------------------------+ + | URL | METHOD | Functionality | + +===========================+========+=================================================+ + | / | GET | List all books w/ profile and other cool stuff. | + +---------------------------+--------+-------------------------------------------------+ + | /loan// | POST | Loan a book. | + +---------------------------+--------+-------------------------------------------------+ + | /reserve// | POST | Reserve a book for loaning. | + +---------------------------+--------+-------------------------------------------------+ + | /filter?author=&isbn=& | GET | Filter the book list. | + +---------------------------+--------+-------------------------------------------------+ + | /login | POST | Log the user in. | + +---------------------------+--------+-------------------------------------------------+ + | /logout | POST | Log the user out. | + +---------------------------+--------+-------------------------------------------------+ + | /profile | GET | Display the users profile. | + +---------------------------+--------+-------------------------------------------------+ + | /register | GET | Register a new user in the application. | + +---------------------------+--------+-------------------------------------------------+ + +Forms +----- + +- Reserve book(s) and add the reservation to a queue. + - A reservation is a structure containing: + - User + - Book + - [implicit] DateTime (reservation made at) + +- Lend a book. + - A book lending structure is / should be the same as the reservations + structure. + +- Search field with a fixed location on the page. + +- Registration / login form. + +Data types +========== + +.. uml:: + + skinparam componentStyle uml2 + + class Book { + 1. ISBN : String + 2. author : Author + 3. publisher : Publisher + 4. year_published : Int + 5. description : String + 6. image_url : String + 7. quantity : Integer + 8. slug : String + 9. title : String + } + + class Author { + name : String + } + + class Language { + iso_name : String + name : String + } + + class Publisher { + name : String + } + + Book - Publisher + Book - Language + Book - Author diff --git a/source/blog/podman.rst b/source/blog/podman.rst new file mode 100644 index 0000000..94a422a --- /dev/null +++ b/source/blog/podman.rst @@ -0,0 +1,19 @@ +.. post:: 2019.11.16 + :tags: howto,podman + :category: gnu/linux + :author: vladan + :location: Linköping + +============================================ +Setting up unprivileged podman on Arch Linux +============================================ + +Install podman:: + + sudo pacman -S podman + sudo sysctl kernel.unprivileged_userns_clone=1 + echo "$(whoami):10000:65536" | sudo tee /etc/subuid | sudo tee /etc/subgid + +Test with:: + + podman run -it --rm alpine /bin/sh