Working prototype of storing collection of items with media (image) attachments.
Get Bun.
bun install
Create a .env in the repo directory and add the following (customize accordingly):
POSTGRES_URL=postgres://postgres@localhost:5432/test
S3_ENDPOINT=http://localhost:9000
S3_BUCKET=images
S3_ACCESSKEYID=minioadmin
S3_SECRETACCESSKEY=minioadmin
bun run build
bun run serveDefaults to http://localhost:3000.
src/js/server.js: Main server with clients, models, and API routes.src/js/app.js: Main front-end script.dist/index.html: Main front-end page.src/css/main.css: Custom CSS.