๐ Monorepo Structure for Stark Brawl
๐ Key Features
โ
Modular Structure โ Frontend, Backend, Smart Contracts & Docs stay separate but integrated.
โ
Monorepo Efficiency โ Uses Turborepo / Nx to handle dependencies across projects.
โ
Shared Code โ UI Components (packages/ui/), Utilities (packages/utils/), and SDK (packages/sdk/).
โ
Web3 Ready โ Cairo Smart Contracts (apps/contracts/), with an SDK to interact from frontend/backend.
โ
CI/CD Ready โ GitHub Actions (.github/workflows/) for automated testing, linting, and deployment.
โ
Documentation Hub โ Supports GitBook or Docusaurus (apps/docs/).
Feel free to test it out and copy the Markdown below by hovering over the code block in the upper right, and pasting into a new line underneath.
stark-brawl-monorepo/
โโโ apps/ # Main applications
โ โโโ web/ # React Frontend (Game UI)
โ โโโ backend/ # Node.js Backend (Matchmaking, WebSockets)
โ โโโ contracts/ # Starknet Smart Contracts (Cairo)
โ โโโ docs/ # Documentation (GitBook/Docusaurus)
โ
โโโ packages/ # Shared Packages for Reusability
โ โโโ ui/ # Shared UI Components (React)
โ โโโ utils/ # Common utilities (helpers, hooks)
โ โโโ sdk/ # Starknet SDK (interacting with contracts)
โ
โโโ configs/ # Configuration files
โ โโโ eslint/ # Linting rules
โ โโโ prettier/ # Code formatting rules
โ โโโ tsconfig/ # TypeScript settings
โ
โโโ scripts/ # Automation & DevOps Scripts
โ โโโ deploy.sh # Deployment script
โ โโโ setup.sh # Environment setup
โ
โโโ .github/ # GitHub Actions (CI/CD)
โ โโโ workflows/ # CI/CD pipelines
โ
โโโ .gitignore # Ignore unnecessary files
โโโ package.json # Root package.json (managing workspaces)
โโโ turbo.json # TurboRepo (for managing monorepo builds)
โโโ README.md # Project Overview
Last updated