grails + mongo - jboss · pdf filegrails + mongo a new super hero in the block, powered by the...

Post on 14-Feb-2018

215 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Grails + Mongo

A new super hero in the block, powered by the power of Cloud.

Groovy

•  Dynamic language for the JVM •  Java of the future •  Integrates with all existing Java libraries •  Compiles straight to Java byte code

Grails

•  Web application framework for the JVM •  Takes advantage of Groovy •  Fast, dynamic and robust

Mongo

•  Scalable •  High performance •  No SQL

The Cloud

•  Openshift | Cloudfoundry •  Scale your applications quickly •  Infrastructure?? What is that, huh?

By your powers combined…

•  Build a grails application on the cloud, backed by Mongo easily

•  Power of Groovy and Grails •  NoSQL capabilities of Mongo •  The power of Cloud

More on Groovy…

•  Reduce the amount of code you write •  Easy and efficient ways to use

Collections framework and Iterators •  Efficient String management functions

Let’s get our hands dirty…

•  Reducing boiler plate code •  Collections •  String manipulations

Hungry for more?

•  The dynamic Groovy •  Don’t forget the Closures •  Some uber cool operators

What does Grails bring in?

•  Scaffolding •  Easier and elegant controllers •  Domain classes and GORM •  Don’t forget the GSPs…

Seeing is believing

•  Scaffolding test run •  GORM showcase

Plugins of Grails

•  Cornerstone of Grails •  Enhance the capabilities •  Community driven – That means YOU!!!

The humongous Mongo..

And in Cloud bind them…

The application.

•  Blog application to blog about something

•  Users can create a blog entry •  Full text search on all blogs

What have we done..

•  Simple Grails app •  Dynamic scaffolding •  Full text search – Searchable plugin •  Backed by Mongo – MongoDB plugin •  Running on the cloud, thanks to

Openshift and Cloudfoundry

Plugins we used

•  MongoDB plugin –  Integration with Mongo

•  Searchable plugin – Lucene based full text search

•  CloudFoundry plugin for Grails – Push your app directly to the cloud. J – Not available for OpenShift

Pushing it to the Cloud!

•  Support for Grails in Cloudfoundry J •  No direct support for in OpenShift L

– WAR upload •  MongoDB gear available in both the

ecosystems

top related