How finnprivategit/experimentmanager works
NAWI-DB is a web platform for managing science-teaching materials, chemicals, experiments, collections, and storage locations. Users search and maintain records, associate resources and safety information, then organize or print/export them. The graph preserves the README’s major capabilities; most domain handlers are represented by their exact API directories because their source was not sampled. Dashed, uncited edges mark likely runtime links not verified in the excerpts.
Main entry points: db.ts PostgreSQL · app.vue Nuxt interface · materials/index.vue Record pages · dashboard/index.vue Dashboard
Components 23
Web application
- Nuxt interface
app/web/app/app.vue - Record pages
app/web/app/pages/materials/index.vue - Experiment pages
app/web/app/pages/experiments/index.vue - Dashboard
app/web/app/pages/dashboard/index.vue - Label designer
app/web/app/pages/label-print.vue
Records and discovery
- Materials and chemicals
server/api/materials - Locations and rooms
server/api/locations - Experiments and collections
server/api/experiments - Codes and tags
server/api/ghs-codes - Global search
server/api/search/global.get.ts - Material import
server/api/material-import/import.post.ts - Safety data parsing
server/api/safety-data-sheets/parse.post.ts
Files and output
- Attachment endpoints
server/api/attachments/upload.post.ts - Labels and sharing
server/api/labels/labels.get.ts - PDF generation
server/utils/pdf/createPdfFromHtml.ts - Attachment storage
server/utils/attachments/storage.ts
Server services
- Edit locking
server/utils/editLocks.ts - API rate limiting
server/utils/rate-limit.ts - Daily cleanup
server/utils/daily-cleanup.ts
Persistence and integrations
- PostgreSQL
server/db.ts - Local or SMB files
- Microsoft identity
Other components
- School user
Connections 29
- School user → Nuxt interface: uses
README.md - Nuxt interface → Record pages: navigates
- Nuxt interface → Experiment pages: navigates
- Nuxt interface → Dashboard: opens
- School user → Label designer: designs labels
README.md - Record pages → Materials and chemicals: manages records
- Record pages → Locations and rooms: assigns inventory
- Experiment pages → Experiments and collections: manages experiments
- Dashboard → Global search: searches
- Dashboard → Materials and chemicals: loads favorites
- School user → Material import: imports materials
README.md - School user → Safety data parsing: parses safety sheets
README.md - School user → Codes and tags: maintains safety codes
README.md - Label designer → Labels and sharing: manages layouts
- Labels and sharing → PDF generation: requests PDF
- Attachment endpoints → Attachment storage: stores files
- Attachment storage → Local or SMB files: reads and writes
README.md - Materials and chemicals → PostgreSQL: reads and writes
- Locations and rooms → PostgreSQL: reads and writes
- Experiments and collections → PostgreSQL: reads and writes
- Codes and tags → PostgreSQL: reads and writes
- Global search → PostgreSQL: searches records
- Material import → PostgreSQL: imports records
- Safety data parsing → PostgreSQL: stores parsed data
- PDF generation → School user: returns PDF
- Edit locking → PostgreSQL: reads and writes locks
server/utils/editLocks.ts - API rate limiting → PostgreSQL: —
- Daily cleanup → PostgreSQL: cleans expired data
- Microsoft identity → Nuxt interface: authenticates users