Tutorial
The goal of this tutorial is to quickly get you started with using Gaelyk to write and deploy Groovy applications on Google App Engine. We'll assume you have already downloaded and installed the Google App Engine SDK on your machine. If you haven't, please do so by reading the instructions from Google.
The easiest way to get setup quickly is to download the template project from the download section. It provides a ready-to-go project with the right configuration files pre-filled and an appropriate directory layout:
web.xml
preconfigured with the Gaelyk servletsappengine-web.xml
with the right settings predefined (static file directive)- a sample Groovlet and template
- the needed JARs (Groovy, Gaelyk and Google App Engine SDK)
You can browse the JavaDoc of the classes composing Gaelyk.
Table of Content
- Setting up your project
- The template project
- Views and controllers
- Flexible URL routing system
- Configuring URL routing
- Defining URL routes
- Using wildcards
- Warmup requests
- Incoming email and jabber messages
- Using path variables
- Capability-aware routing
- Ignoring certain routes
- Caching groovlet and template output
- Namespace scoped routes
- Google App Engine specific shortcuts
- Improvements to the low-level datastore API
- Using
Entity
s as maps or POJOs/POGOs - Converting beans to entities and back
- Adding CRUD operations to classes with @Entity
- List to
Key
conversion - Added
save()
anddelete()
methods onEntity
- Added
delete()
andget()
methods onKey
- Converting
Key
to an encodedString
and vice-versa - Added
withTransaction()
method on the datastore service - Added
get()
methods on the datastore service - Querying
- Asynchronous datastore
- Datastore metadata querying
- The task queue API shortcuts
- Email support
- XMPP/Jabber support
- Enhancements to the Memcache service
- Enhancements related to the Blobstore and File services
- Getting blob information
- Serving blobs
- Reading the content of a Blob
- Deleting a blob
- Example Blobstore service usage
- File service
- Namespace support
- Images service enhancements
- Capabilities service support
- URLFetch Service improvements
- Channel service improvements
- Backend service support
- Search service support
- Simple plugin system
- What a plugin can do for you
- Anatomy of a Gaelyk plugin
- Using a plugin
- How to distribute and deploy a plugin
- Running and deploying Gaelyk applications