90 lines
2 KiB
Org Mode
90 lines
2 KiB
Org Mode
#+title: Frontend
|
|
|
|
* Plan
|
|
|
|
** 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
|
|
- [ ] users import from hackerbase
|
|
|
|
** 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
|
|
|
|
** 0.2
|
|
|
|
- [X] use localStorage to store user
|
|
- [X] add barcode scanner to get the user
|
|
- [X] allow editing
|
|
- [X] add UserSelect component
|
|
- [X] integrate script for starting build qemu system
|
|
- [X] add org file to the repository after cleanup
|
|
|
|
* 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
|