From b65740e21438bda18dd5a2e5d4f64c696f937f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Sun, 13 Apr 2025 20:51:02 +0200 Subject: [PATCH] Add the org file with plan. --- 0PLAN.org | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 0PLAN.org diff --git a/0PLAN.org b/0PLAN.org new file mode 100644 index 0000000..befe26b --- /dev/null +++ b/0PLAN.org @@ -0,0 +1,89 @@ +#+title: Frontend + +* Plan + +** 0.2 + +- [ ] use localStorage to store user + - [ ] add barcode scanner to get the user + - [ ] allow editing + - [ ] add UserSelect component +- [X] integrate script for starting build qemu system +- [X] add org file to the repository after cleanup + +** 0.3 + +- [ ] versioned schema support + - [ ] barschema table + - [ ] function to check + - [ ] function to set + - [ ] initial creation of tables at version 1 assuming OK if tables exist + +** 0.4 + +- [ ] add inventory check table +- [ ] add inventory item check table +- [ ] create new check +- [ ] check item +- [ ] close check +- [ ] inventory check component + +** Later + +- [ ] add static token support + - [ ] hardwired token for the React.JS app? +- [ ] authentication + - [ ] login/logout + - [ ] allow API calls only with login token + +* Finished + +** 0.1 + +- [X] statically compiled binary HTTP server +- [X] include directory tree contents +- [X] handle frontend with mime type +- [X] move app to / again +- [X] load certificates +- [X] deployment preparations + - [X] crosscompilation - no, compile in qemu or on separate host + - [X] connect to postgres + - [X] use qr-scanner - no, qr-barcode-scanner is needed + - [X] rsync + build in qemu or host without react (filters or something) +- [X] API infrastructure + - [X] handle API calls + - [X] API registry syntax + - [X] lookup barcode in DB + - [X] separate module brmbar-data for queries + - [X] separate module api-servlets + +* Qemu + +#+BEGIN_SRC +wget img zip # 2019-04-08-raspbian-stretch.zip +unzip 2019-04-08-raspbian-stretch.zip +sudo mkdir /mnt/image +sudo mount -o loop,offset=4194304 2019-04-08-raspbian-stretch.img /mnt/image/ +# In qemu-system-armhf terminal! +cp kernel, DT +umount /mnt/image +resize img +#+END_SRC + +sources.list - archive debian (remove rpi), archive raspberry +https://archive.raspberrypi.org/debian/ +https://archive.debian.org/debian/ +apt-get --no + +* React - Vite + +#+BEGIN_SRC sh + npm create vite@latest + # "frontend" + # React + # Javascript + cd frontend + npm install + npm run dev + npm run build +#+END_SRC