How alexandr1830/diploma works
DocManager supports authenticated document drafting, versioning and review, published-document browsing, discussions, compliance checks, and administration. Users enter through the web app; document pages call the API for document and review operations, while library pages support published content and shared discussions. The Go backend provides HTTP handlers, services, parsing, compliance, and persistence. The README is empty, and several backend wiring details are not excerpted, so uncertain backend relationships are omitted or marked unverified.
Main entry points: router.go HTTP routing · App.jsx Routes and access · client.js API client · DocumentPage.jsx Document workspace
Components 27
Web application
- Routes and access
frontend/src/App.jsx - API client
frontend/src/api/client.js
Document workflows
- Document workspace
frontend/src/pages/DocumentPage.jsx - Document listing
frontend/src/pages/DocumentsListPage.jsx - Document creation
frontend/src/pages/CreateDocumentPage.jsx - Thread discussions
frontend/src/components/discussions - Version comparison
frontend/src/components/DiffModal.jsx - Document preview
frontend/src/components/FullscreenViewer.jsx - Published library
frontend/src/pages/LibraryPage.jsx - Library document
frontend/src/pages/LibraryDocumentPage.jsx - Compliance interface
frontend/src/components/ComplianceModal.jsx - Administration
frontend/src/pages/AdminUsersPage.jsx
Backend services
- HTTP routing
internal/handler/router.go - Authentication
internal/service/auth.go - Document services
internal/service/document.go - Review workflow
internal/service/review.go - Discussion service
internal/service/discussion.go - Library service
internal/service/library.go - Compliance engine
internal/compliance/engine.go - Rule-set service
internal/service/ruleset.go - Admin services
internal/service/admin.go
Persistence and processing
- Repository layer
internal/repository/postgres.go - PostgreSQL
pkg/database/postgres.go - Document parsers
internal/parser - Preview generation
internal/preview/preview.go - Domain models
internal/models/models.go
Other components
- User
Connections 35
- User → Routes and access: uses
frontend/src/App.jsx - Routes and access → API client: checks session
frontend/src/App.jsx - Routes and access → Document workspace: routes to
frontend/src/App.jsx - Routes and access → Document listing: routes to
frontend/src/App.jsx - Routes and access → Document creation: routes to
frontend/src/App.jsx - Routes and access → Published library: routes to
frontend/src/App.jsx - Routes and access → Library document: routes to
frontend/src/App.jsx - Routes and access → Administration: routes to
frontend/src/App.jsx - Document workspace → API client: calls
frontend/src/pages/DocumentPage.jsx - Document workspace → Thread discussions: renders
frontend/src/pages/DocumentPage.jsx - Document workspace → Version comparison: renders
frontend/src/pages/DocumentPage.jsx - Document workspace → Document preview: renders
frontend/src/pages/DocumentPage.jsx - Document listing → API client: calls
frontend/src/pages/DocumentsListPage.jsx - Document creation → API client: calls
frontend/src/pages/CreateDocumentPage.jsx - Published library → API client: calls
frontend/src/pages/LibraryPage.jsx - Library document → API client: calls
frontend/src/pages/LibraryDocumentPage.jsx - Library document → Thread discussions: renders
frontend/src/pages/LibraryDocumentPage.jsx - Compliance interface → API client: runs checks
frontend/src/components/ComplianceModal.jsx - Thread discussions → API client: posts and resolves
frontend/src/components/discussions/ThreadMessages.jsx - API client → HTTP routing: HTTP requests
- HTTP routing → Authentication: dispatches
- HTTP routing → Document services: dispatches
- HTTP routing → Review workflow: dispatches
- HTTP routing → Discussion service: dispatches
- HTTP routing → Library service: dispatches
- HTTP routing → Compliance engine: dispatches
- HTTP routing → Rule-set service: dispatches
- HTTP routing → Admin services: dispatches
- Document services → Repository layer: uses
- Review workflow → Repository layer: uses
- Discussion service → Repository layer: uses
- Library service → Repository layer: uses
- Compliance engine → Document parsers: evaluates content
- Repository layer → PostgreSQL: persists data
- Document services → Preview generation: generates previews