2 KiB
2 KiB
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
- statically compiled binary HTTP server
- include directory tree contents
- handle frontend with mime type
- move app to / again
- load certificates
-
deployment preparations
- crosscompilation - no, compile in qemu or on separate host
- connect to postgres
- use qr-scanner - no, qr-barcode-scanner is needed
- rsync + build in qemu or host without react (filters or something)
-
API infrastructure
- handle API calls
- API registry syntax
- lookup barcode in DB
- separate module brmbar-data for queries
- separate module api-servlets
0.2
-
use localStorage to store user
- add barcode scanner to get the user
- allow editing
- add UserSelect component
- integrate script for starting build qemu system
- add org file to the repository after cleanup
Qemu
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
sources.list - archive debian (remove rpi), archive raspberry https://archive.raspberrypi.org/debian/ https://archive.debian.org/debian/ apt-get –no
React - Vite
npm create vite@latest
# "frontend"
# React
# Javascript
cd frontend
npm install
npm run dev
npm run build