This directory contains comprehensive documentation for the ChanakyaIQ project, designed to provide complete context for developers, AI agents, and contributors.
🗺️ Need help navigating? See DOCUMENTATION-MAP.md for visual guide and documentation relationships.
AGENTS.md - START HERE
Complete project documentation including:
- Project overview and purpose
- Tech stack (Spring Boot 4, React 19, Java 21, TypeScript)
- Architecture and directory structure
- API endpoints and database schema
- Business logic and key features
- Development workflow and setup
- Troubleshooting guide
- Configuration files
Use this as your primary reference for understanding the entire project.
Deep dive into authentication:
- Complete OAuth2 flow with step-by-step diagrams
- Google OAuth2 integration details
- Session management (JSESSIONID cookies)
- Security features and configuration
- User provisioning logic
- CORS and credential handling
- Troubleshooting authentication issues
Use this when working on authentication, security, or understanding the login flow.
| I want to... | Go to... |
|---|---|
| Understand the entire project | AGENTS.md |
| Learn how authentication works | OAUTH2-FLOW.md → Security Config |
| See all API endpoints | AGENTS.md - API Endpoints |
| Understand database structure | AGENTS.md - Database Schema |
| Setup development environment | AGENTS.md - Development Workflow |
| Add new features | AGENTS.md - Common Development Tasks |
| Understand business logic | AGENTS.md - Business Logic Highlights |
chanakyaiq/
├── .github/
│ ├── README.md ← You are here
│ ├── AGENTS.md ← Complete project documentation
│ └── OAUTH2-FLOW.md ← Authentication deep dive
├── backend/ ← Multi-module Maven parent (Java 21)
│ ├── chanakya-iq-api/ ← Generated models (OpenAPI plugin)
│ └── chanakya-iq-service/ ← Spring Boot service and APIs
└── frontend/ ← React UI (TypeScript)
- Read AGENTS.md for complete context
- Setup environment following Development Workflow
- Configure OAuth2 using OAUTH2-FLOW.md
- Start developing with Common Development Tasks
- Backend: Java 21, Spring Boot 4.0.6, Spring Security, JPA/Hibernate, H2 Database, RestClient, Log4j2
- Frontend: React 19.2.6, TypeScript 6.0.3, Vite 8.0.12
- Authentication: Google OAuth2 (session-based with JSESSIONID cookies)
- Architecture: Multi-module Maven project with OpenAPI code generation
These documents are designed to:
- ✅ Provide complete context without needing to explore every file
- ✅ Enable AI agents to understand the project quickly
- ✅ Help new developers onboard efficiently
- ✅ Serve as reference documentation for existing team members
- ✅ Document architecture decisions and design patterns
When making significant changes:
- Update AGENTS.md for structural/architectural changes
- Update OAUTH2-FLOW.md for authentication changes
- Add new documentation files for major new features
- Link new docs from this README
See AGENTS.md - Contributing Guidelines for contribution process.
Last Updated: June 13, 2026
Maintained by: Harish Singla