flexongrails

Setting Up Your Grails and Flex Projects

The following chapter provides step by step directions on how to create and set up your Flex and Grails projects on popular IDEs.

IntelliJ Idea 9
( This content was written with IntelliJ Idea 9 Maia EAP, it will be updated with future releases )

Prerequisites

Create a new Grails/Flex Project.

Select File -> New Project
Select J2EE Project
Enter the Name of your Project, click enter.
On the next screen, select the '+' arrow and add a Java SDK 
Point the Java SDK to your JVM location.
Click Enter.
Select the '+' arrow and add the Flex SDK
Point to the location of your Flex SDK, if you have a copy of Flash Builder installed, the sdk will be inside the installation directory, i.e. /Applications/Adobe Flash Builder Beta/sdks/4.0.0
Click Ok. 
On the Next Screen, make sure Flex is checked and your SDK is selected.
Check the Groovy/Grails button.
Point to your Grails installation location.
Click 'Finish'.




Compiling and Running Your Application.

Debugging Your Application.


Flash Builder 4

Prerequisites 
Install Flash Builder
Install Groovy Plugin For Eclipse ( Optional )
  1. Open Flash Builder 4.
  2. Click on Help > Software Updates > Find and Install...
  3. Select 'Search for new features to install'.
  4. Click Next.
  5. On the right hand side, click on the 'New Remote Site Button'
  6. Enter the name 'Groovy Eclipse Plugin'
  7. Enter the url http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/ 



  8. Click 'OK'
  9. Check the 'Eclipse Projects Update' Remote Site
  10. Click 'Finish'
  11. Eclipse will now search for all available plugins. 
  12. Choose Your Local repository for the update servers. Click 'OK'
  13. On the Search Results Screen, Expand the Groovy Eclipse Plugin Repository.
  14. Click on the 'Select Required' button on the Right.
  15. You should see the Eclipse SDK Eclipse 3.4.2. repository have a '-' sign next to it. 


  16. Click on 'Next'
  17. Click on 'I accept the terms in this license agreement'.
  18. Click on 'Next'. Then 'Finish'.
  19. Restart the Flash Builder.

Creating a Grails Project

Creating a Flex Project

Running Your Grails Project

Running Your Flex Project