Skip to content

groovy-web/groovy-web-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Groovy Web Examples

Built by Groovy Web License: MIT

A comprehensive collection of examples, tutorials, and best practices for building modern web applications with Groovy.

Overview

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

Quick Start

# Clone the repository
git clone https://github.com/groovy-web/groovy-web-examples.git
cd groovy-web-examples

# Explore examples by category
ls examples/

Repository Structure

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

Examples by Category

Grails Framework

  • Basic CRUD: Simple create-read-update-delete operations
  • REST APIs: Building RESTful services
  • Domain Modeling: GORM relationships and validation
  • Security: Authentication and authorization

Ratpack

  • Async Handlers: Non-blocking request handling
  • Streaming: Real-time data streaming
  • Routing: Advanced routing patterns

Micronaut

  • Microservices: Building cloud-native applications
  • GraalVM: Native image compilation
  • Reactive Programming: Non-blocking I/O

Testing

  • Spock Framework: Specification-based testing
  • Geb: Functional web testing
  • Integration Tests: End-to-end testing strategies

Documentation

Requirements

  • Java 8 or higher
  • Groovy 3.0+
  • Gradle 6.0+ (for building examples)

Running Examples

Each example includes its own README with specific instructions:

cd examples/grails/basic-crud
./gradlew bootRun

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License - see LICENSE for details.

Code of Conduct

Please read CODE_OF_CONDUCT.md to understand our community standards.

Support

  • GitHub Issues: Report bugs and request features
  • Discussions: Ask questions and share ideas
  • Wiki: Additional documentation and tutorials

Resources


Related Repositories

Explore more open-source tools from Groovy Web:

About

Examples, tutorials, and best practices for modern web development with Groovy

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors