Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project integration in Grails [closed]

I am doing a few tutorials and done some demo applications in Grails.

Suppose I have more than one project made in Grails and I want to integrate all these projects in to a single application, how do I do it?

For eg: I have made a 'To do list' and 'on-line examination' and now I want to create a new application that would incorporate both these applications.

Thanks

like image 603
DonX Avatar asked Dec 14 '22 05:12

DonX


2 Answers

Another way to do this would be by re-packaging one (or both) of your projects as a plugin. That would allow you to keep them in separate code bases if you need to.

A plugin IS a regular Grails application (you can run it with grails run-app), so the switch over shouldn't be difficult.

like image 110
Jean Barmash Avatar answered Dec 15 '22 19:12

Jean Barmash


The BEST way to create reusable modules in Grails is to package them as Grails plugins. As it was mentioned already, a Grails plugin IS a regular Grails web application (with a standard layout) with additional meta data, so it helps the GrailsPluginManager component to incorporate plugins into other applications.

I'd highly recommend the book which covers most of the aspects of the Grails plugin system pretty well. It even shows the example of how to wrap the 'regular' blogging app as a plugin and incorporate into another Grails application.

like image 41
Dmitriy Kopylenko Avatar answered Dec 15 '22 20:12

Dmitriy Kopylenko