A comprehensive collection of examples, tutorials, and best practices for building modern web applications with Groovy.
This repository contains practical examples demonstrating Groovy's power in web development, including:
- Web framework integrations (Grails, Ratpack, Micronaut)
- RESTful API development
- Database integration (GORM, JDBC)
- Testing strategies
- Deployment configurations
# Clone the repository
git clone https://github.com/groovy-web/groovy-web-examples.git
cd groovy-web-examples
# Explore examples by category
ls examples/groovy-web-examples/
├── docs/ # Detailed documentation
│ ├── getting-started.md
│ ├── frameworks.md
│ └── best-practices.md
├── examples/ # Code examples
│ ├── grails/
│ ├── ratpack/
│ ├── micronaut/
│ └── testing/
├── .github/ # GitHub templates
└── README.md
- Basic CRUD: Simple create-read-update-delete operations
- REST APIs: Building RESTful services
- Domain Modeling: GORM relationships and validation
- Security: Authentication and authorization
- Async Handlers: Non-blocking request handling
- Streaming: Real-time data streaming
- Routing: Advanced routing patterns
- Microservices: Building cloud-native applications
- GraalVM: Native image compilation
- Reactive Programming: Non-blocking I/O
- Spock Framework: Specification-based testing
- Geb: Functional web testing
- Integration Tests: End-to-end testing strategies
- Getting Started - Setup and installation
- Framework Guides - Detailed framework comparisons
- Best Practices - Coding standards and patterns
- Java 8 or higher
- Groovy 3.0+
- Gradle 6.0+ (for building examples)
Each example includes its own README with specific instructions:
cd examples/grails/basic-crud
./gradlew bootRunWe welcome contributions! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see LICENSE for details.
Please read CODE_OF_CONDUCT.md to understand our community standards.
- GitHub Issues: Report bugs and request features
- Discussions: Ask questions and share ideas
- Wiki: Additional documentation and tutorials
Explore more open-source tools from Groovy Web:
- langchain-multi-agent-example -- Multi-agent systems tutorial with LangChain
- rag-system-pgvector -- Production RAG with PostgreSQL + pgvector
- rag-systems-production -- Enterprise-grade RAG systems
- ai-testing-mcp -- AI testing via Model Context Protocol
- edge-computing-starter -- Cloudflare Workers + Hono template
- claude-code-workflows -- Workflows for Claude Code
- groovy-web-ai-agents -- Production AI agent configs
- groovy-web-examples -- Groovy/Grails examples