Skip to content

3musket33rs/aerogear-mobile-scaffolding

Repository files navigation

aerogear-mobile-scaffolding

aerogear-mobile-scaffolding is a plugin to scaffold CRUD for a mobile first application. Header, footer, list with responsive UI powered by lightweight topcoat CSS. MVC is powed by cujo.js, mobile plumbing with AeroGear. This scaffolding plugin scaffold client views, it requires that your controller has been generated using generate-restful-controller.

Install it

Add a dependency to BuildConfig.groovy:

plugins {
    compile ":aerogear-mobile-scaffolding:0.0.1"
    ...
}

To test it

  • Pre-requisites

    • npm installed
    • bower installed
    • Grails 2.3.6+
    • make our domain class RESTful

In domain class:

import grails.rest.*
@Resource(uri = '/talks', formats = ['json'])
class Talk {
    String description
    static constraints = {
    }
}
  • Generate the view Use command line:
grails html-generate-views org.myproject.MyDomainClass
  • Fetch Js dependencies with bower
cd web-app
npm install
grails run-app

Available Targets

html-generate-views [domainClass] [optional viewName]

Give it a trial and send us feedback!

3muskete33rs on twitter @3musket33rs

  • Athos is Corinne Krych (@corinnekrych)
  • Aramis is Sebastien Blanc (@sebi2706)
  • Porthos is Fabrice Matrat (@fabricematrat)
  • D'Artagnan is Mathieu Bruyen (@mathbruyen)

About

Scaffold Grails mobile app with AeroGear and Cujo.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published