How bv-brc/bv-brc-web works
Main Architecture Components
The system appears to be a full-stack web application with the following key components:
a. Frontend Layer:
• Client-side application built with Dojo framework (evident from /public/js/dojo directory)
• Multiple widgets and viewers for different functionalities (/public/js/p3/widget/)
• Specialized visualization components for genomics data
• Multiple search interfaces (/public/js/p3/widget/search/)
b. Backend Layer:
• Node.js server application (app.js as entry point)
• Express.js framework (evident from routes directory)
• RESTful API routes (/routes directory)
c. Services Layer:
• Worker services (/public/worker/)
• Data stores (/public/js/p3/store/)
• Authentication services (evident from login-related components)
Key Architectural Patterns to Highlight
a. MVC Pattern:
• Models: Store implementations in /public/js/p3/store/
• Views: Widget implementations in /public/js/p3/widget/
• Controllers: Route handlers in /routes/
b. Modular Widget System:
• Base widgets with inheritance
• Specialized viewers for different data types
• Reusable components
• Client Layer |
• Widgets | | Viewers | |
• Stores | | Search | |
• Server Layer |
• Routes | | Controllers | |
• Workers | | Services | |
• Data Layer |
• Models | | Storage | |