API / Apache Grails Interview questions
How do you create a new Grails application using Grails Forge?
- Visit start.grails.org and choose the application's group and package name, similar to filling out a form on Spring Initializr.
- Select a profile (such as "web" for a traditional server-rendered application or "rest-api" for a JSON-focused backend), which determines the base set of dependencies and starting project layout.
- Add any desired features or plugins (database driver, Spring Security, asset pipeline) from the options Grails Forge offers, so they're pre-wired into the generated build file rather than added by hand afterward.
- Download the generated project archive, which already includes the Grails Wrapper (
grailsw/grailsw.bat), so no separate CLI installation is required. - Run
./grailsw run-app(or the platform-appropriate wrapper command) from the extracted project directory, which downloads the pinned CLI version on first run and starts the application locally.
The end result is a working, runnable skeleton application with the chosen profile's conventions already in place — a developer's first real work is filling in domain classes and business logic, not assembling the initial project scaffolding by hand.
More Related questions...