spring roo

70
Spring Roo By Rohit Ghatol [email protected]

Upload: paulos

Post on 23-Feb-2016

55 views

Category:

Documents


0 download

DESCRIPTION

Spring Roo. By Rohit Ghatol [email protected]. What?. Why ?. How ?. What is Roo?. Version 1.2. Spring Roo. Tool. Rapid App Development. High Quality. No Lock In. Java. Spring. JPA. Setting Expectations Right?. Maven. JSP. GWT. Flex. Unlike Others Spring Roo is not. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Spring Roo

Spring Roo

By Rohit [email protected]

Page 2: Spring Roo

What?

Why?

How?

Page 3: Spring Roo

What is Roo?

Version 1.2

Page 4: Spring Roo

No Lock In

High Quality

Rapid App Development

Tool

Spring Roo

Page 5: Spring Roo

Setting Expectations Right?

Java SpringJPA

MavenJSP

GWTFlex

Page 6: Spring Roo

Spring Roo

Runtime Library IDE Plugin Annotatins

Unlike Others Spring Roo is not

Page 7: Spring Roo

What does roo look like?

Page 8: Spring Roo
Page 9: Spring Roo

10 minute Test

Page 10: Spring Roo

Step 1: Create Roo Project

Page 11: Spring Roo
Page 12: Spring Roo

Step 2: Setup Persistence Layer

Page 13: Spring Roo
Page 14: Spring Roo

Step 3: Declare Entities

Page 15: Spring Roo
Page 16: Spring Roo

Step 4: Add Fields

Page 17: Spring Roo
Page 18: Spring Roo

Step 5: Build Project

Page 19: Spring Roo
Page 20: Spring Roo

Step 6: Browse Project

Page 21: Spring Roo

Spring Roo Projects are Maven Project

Page 22: Spring Roo

Step 7: Generate Web App Scaffoldng

Page 23: Spring Roo
Page 24: Spring Roo
Page 25: Spring Roo
Page 26: Spring Roo

Step 8: Deploy

Page 27: Spring Roo
Page 28: Spring Roo
Page 29: Spring Roo
Page 30: Spring Roo
Page 31: Spring Roo
Page 32: Spring Roo

Step 9: Create Selenium Test Cases

Page 33: Spring Roo
Page 34: Spring Roo
Page 35: Spring Roo

Step 10: Test UI

Page 36: Spring Roo
Page 37: Spring Roo

Why Spring Roo?

Page 38: Spring Roo

Shell/Command Based

Has a Context and this is Better than any Wizard

Page 39: Spring Roo

Active Code Generation

Lets add one more field to Employee, and see what happens?

Page 40: Spring Roo

Domain Driven Design

Page 41: Spring Roo

All Source Code is there

No Runtime as we said earlier

Page 42: Spring Roo

Add your own Plugins

Create Organization wide plugins or make them OpenSource

Page 43: Spring Roo

TypicalSecurity Plugin

Typical = ConvensionWhat all of us do most of time

Page 45: Spring Roo

Run TypicalSecurity• project --topLevelPackage com.testproject2 --projectName

TestProject2

• //Typical Security Addon needs persistence, other wise it doesn't show itself

• persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY

• Usage

• //Run the TypicalSecurity setup addon in default mode• typicalsecurity setup

Page 46: Spring Roo

What do we get?

• User Role Model classes• Sign up – With Captcha• Activation Email• Forgot Password

Page 47: Spring Roo
Page 48: Spring Roo

How to?

Page 49: Spring Roo

Adding Security

Page 50: Spring Roo
Page 51: Spring Roo
Page 52: Spring Roo
Page 53: Spring Roo
Page 54: Spring Roo
Page 55: Spring Roo
Page 56: Spring Roo

Adding Finders

Page 57: Spring Roo
Page 58: Spring Roo
Page 59: Spring Roo
Page 60: Spring Roo
Page 61: Spring Roo

Adding Custom Controller

Page 62: Spring Roo

Adding Custom Controller

Page 63: Spring Roo
Page 64: Spring Roo
Page 65: Spring Roo
Page 66: Spring Roo
Page 67: Spring Roo
Page 68: Spring Roo
Page 69: Spring Roo

Conclusion

Page 70: Spring Roo

• Use Roo for – Database Modeling Stage– Rapid Prototyping

• Remove Roo if– After prototyping you want a simple Java Project– Recommended keep things for reactive scaffolding

• Build Organization wise/Feature wise Addon– Add Ons are very powerful– Any Project can use it (as long as at the beginning

they are Spring Roo)