"A practical, developer-first handbook for structuring React + FastAPI projects—from AI MVPs to scalable platforms."
Live Site: https://mcklay.github.io/codebase-architecture/
Author: Clay Mark Sarte
Built with MkDocs Material | Covers React + Vite + FastAPI | AI-first ready
This is a book-style, structured guide for software engineers who care deeply about folder structure, modularity, scalability, and architectural sanity—especially in the age of AI-driven, full-stack applications.
Whether you're:
- building your first AI-powered prototype,
- collaborating across teams,
- or refactoring a tangled monolith into scalable layers—
This guide walks you through real-world patterns, decisions, trade-offs, and templates used in React + FastAPI ecosystems.
-
Part 1 – Foundations
Why folder structure matters. How modularity and scalability impact collaboration and maintainability. -
Part 2 – Modularity
Feature-first folder structures for React + FastAPI. Ideal for solo devs, MVPs, and isolated features. -
Part 3 – Scalability
Layered architecture. Cross-team readiness. How to scale shared logic, services, and infrastructure. -
Part 4 – Hybrid & Advanced
Combining modular and scalable structures. Monorepos, shared logic, refactor-safe migration paths. -
Part 5 – Case Studies & Templates
Real-world AI apps. Smart Receipt Analyzer, GPT-powered Chatbot, and Mockup-to-Code tool. Includes clone-ready templates.
- Markdown-first structure
- MkDocs Material (for future site deployment)
- Real code examples using React + Vite and FastAPI
- AI-first use cases (OCR, GPT, vector DBs)
- Docker, CI/CD, and deployment structure guides
# Clone the repo
git clone https://github.com/McKlay/codebase-architecture.git
cd codebase-architecture
# Optional: Setup MkDocs site locally
pip install mkdocs mkdocs-material pymdown-extensions
mkdocs serveYou'll find downloadable folder templates under /templates/:
modular-react-fastapi-template/scalable-react-fastapi-template/hybrid-ai-app-template/
Each template includes:
- Clean folder breakdown
- Feature/sample implementation
- README + bootstrap instructions
Chapters are organized in Markdown under /docs/ and can be browsed directly or rendered as a site via MkDocs.
In Progress New chapters are being added weekly. Feedback, ideas, and contributions are always welcome!
MIT License © Clay Mark Sarte
Open for learning, remixing, and evolving—credit where credit is due.