How peter-gy/pluto works
Main Components
a. Frontend Applications:
• Survey Public (Vue.js application)
• Survey Admin (Next.js application)
• Survey Analysis (Streamlit application)
b. Backend Services:
• CMS (Strapi-based Content Management System)
• Database Service
• Database Admin Service
c. Shared Libraries:
• survey-model
• utils
• cli
Component Relationships and Architecture
Top Layer (Client Applications):
• Survey Public (Vue.js)
• Survey Admin (Next.js)
• Survey Analysis (Streamlit)
Middle Layer (API and Services):
• CMS Service (Strapi)
• API routes connecting to frontend applications
• Authentication flows
Bottom Layer (Data Layer):
• Database Service
• Database Admin Service
• Data flow connections
Shared Components (Side Layer):
• Libraries (survey-model, utils, cli)
• How they connect to other components
Specific Implementation Details
Use the following visual elements:
• Double lines for data flow
• Blue: Frontend applications
• Green: API services
• Yellow: Database services
• Gray: Shared libraries
Key Architectural Patterns to Highlight
• Microservices architecture (multiple independent applications)
• API-first approach (CMS with multiple consumers)
• Shared library pattern for common functionality
• Container-based deployment (note Docker configuration)
Additional Elements
• Authentication flow
• Content management flow
• Survey data flow
• Analysis pipeline
Technical Stack Indicators
Technology badges for:
• Vue.js (Survey Public)
• Next.js (Survey Admin)
• Streamlit (Analysis)
• Strapi (CMS)
• PostgreSQL (Database)
• Docker (Deployment)
Infrastructure Layer
Deployment configuration:
• Docker containers
• Development environment
• Production environment
Administrative flow
Remember to include version control and CI/CD aspects as they're evident from the .github workflow configurations in the repository.
This system design should clearly show how PLUTO functions as a comprehensive tool for assessing public value of data use, with its various interfaces and processing components working together cohesively.