How nidelson/nba works
Main Components
A. Monorepo Structure (Top Level)
• Turborepo workspace as the containing environment
• Three main sections: apps/, packages/, and configuration files
B. Applications Layer
• Web Application (Next.js)
• Native Application (React Native/Expo)
• Their independent configurations and build processes
C. Shared Package Layer
• UI Component Library
• TypeScript Configurations
• How these are consumed by both applications
┌─────────────────────── Turborepo Workspace ────────────────────────┐
• ┌─── Apps ────────────────────────┐ ┌──── Packages ─────────────┐│
• ┌─────────┐ ┌─────────┐ │ │ ┌────────┐ ┌────────┐ ││
• Web │ │ Native │ │ │ │ UI │ │TSConfig│ ││
• (Next.js)│ │ (Expo) │ │ │ │Package │ │Package │ ││
• ┬────┘ └────┬────┘ │ │ └───┬────┘ └────────┘ ││
• ┘ └──────│────────────────────┘│
• ┼──────────────────┘ │
• ┼─────────────────────────────────────────┘
• ┌──────┴───────┐
• End Users │
• ┘
Key Relationships to Highlight
A. Dependencies Flow
• How both apps consume the shared UI package
• How TSConfig is used across all TypeScript files
• Demonstrate the build process flow using Turborepo
B. Cross-Platform Sharing
• How the UI components are shared between web and native
• Platform-specific implementations where necessary
Technical Stack Indicators
Technology badges or labels for:
• Next.js (Web)
• Expo/React Native (Native)
• TypeScript
• Turborepo
• React Native Web
Additional Details
A. Configuration Layer
• Role of turbo.json in orchestrating the monorepo
• Presence of shared TypeScript configurations
B. Build Process
• How Turborepo handles the build pipeline
• Relationship between package.json scripts
Important Notes
• Keep the shared UI package central in the design as it's a critical shared resource
• Separation between web and native platforms while highlighting their shared aspects
• Notes about the TypeScript integration throughout the system
• Role of Expo in the native application build process
Remember to include version control and CI/CD considerations in a separate section if relevant to the project's deployment strategy.