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
š ļø How to Set Up & Run
1ļøā£ Clone Repo & Install Dependencies
bashCopyEditgit clone https://github.com/SunsetLabs/StarkBrawl-Monorepo.git
cd stark-brawl-monorepo
pnpm install # or yarn install
2ļøā£ Run Apps in Parallel (TurboRepo)
bashCopyEditpnpm dev # Runs frontend, backend & contracts together
3ļøā£ Deploy Smart Contracts (Starknet)
bashCopyEditcd apps/contracts
starknet deploy --contract stark_brawl.cairo --network testnet
4ļøā£ Start Backend (Matchmaking, API)
bashCopyEditcd apps/backend
pnpm start