GRAILS 3 - Step By Step
GRAILS 3 - Step By Step
Greenfield applications made right with Grails 3
About the Book
A practical book about Grails 3 full stack framework!
We try to describe here how a complete greenfield application can be implemented with Grails 3 in a fast way using profiles and plugins - and we do this in the sample application that accompanies this book. You can find news about this book on its presentation site located here: www.grailsthreebook.com. This book is not a replacement of the [Grails 3 Reference Documentation](http://docs.grails.org/latest) which is a complete description of [Grails 3](https://grails.org), made by the creators of the framework.
The source code used in this book is part of this sample application which is a free project hosted on GitHub on this location: https://github.com/colaru/mvp-application. If a source code fragment is included in this book, then it is taken from this project. We use BDD or other specification by example techniques for describing the sample application specification - the leaving documentation for the project can be found here: http://serenity.itjobsboard.eu. The application code is tested in a TDD style using automated unit, integration and functional tests.
The sample application is based on a multi project Gradle build so the application can be automatically built using Gradle - the build tool used by Grails 3. The web application is available here: https://www.itjobsboard.eu. The admin application is available online here: https://admin.itjobsboard.eu. The deployment is done automatically to AWS cloud in a Continuous Deployment style using Jenkins.
We use links to various external resources in this book (you will see them in the page’s footers), because this book is intended to be in electronic format from the beginning. The reader can use these links for consulting external references in an easy way.
The book has two parts.
First part - Grails 3 Essentials
An introduction to application development with Grails 3; we describe the main application that will be implemented in the second part of the book
**Chapter 1** is an introduction to the framework. You will find here some history of the framework and a lot of links to the Grails resources; it is presenting the classical three layered architecture for a web application provided by Grails 3
**Chapter 2** describes how to start your work with Grails 3 framework and how to install all the tools for a free working environment - free as much as possible because you have to pay some money for the best tools on the market
**Chapter 3** presents the project we want to implement as an example; it is presenting also the way we choose to work on implementing the sample application, based on BDD, TDD, CI and CD; it shows how the main application is split into multiple parts based on Grails 3 profiles
Second part - Practical example with Grails 3
A practical implementation of a greenfield application with Grails 3; the application is composed of multiple parts corresponding to various Grails 3 profiles
**Chapter 4** describes the implementation of the application admin portal that will be used in Intranet by the site administrators, based on a classical Grails 3 Web Profile
**Chapter 5** describes the implementation of the application site exposed to the Internet to the customers, that is based on Grails 3 Angular Profile
**Chapter 6** describes a REST web API exposed with Grails 3 Rest Profile and consumed by a mobile hybrid application created with Ionic 2 (can be published in Google Play, Apple Store, and Windows Store)
**Chapter 7** describes a Microservice developed with Grails 3 Rest API Profile
How this book is organized
- First part - Grails 3 Essentials
- Second part - Practical example with Grails 3
- How this book is organized
PART 1 - Grails 3 Essentials
1. Introduction to Grails 3
1.1 Some history
- 1.1.1 Java history
- 1.1.2 Java EE history
- 1.1.3 Spring history
- 1.1.4 Groovy history
- 1.1.5 Grails history
1.2 Grails application architecture
- 1.2.1 A classical layered architecture
1.3 New technologies inside Grails 3
- 1.3.1 Spring Boot
- 1.3.2 Gradle
- 1.3.3 Gorm
- 1.3.4 LogBack
1.4 Modularity aspects of Grails
- 1.4.1 Plugins
- 1.4.2 Profiles
- 1.1 Some history
2. Set your free working environment
- 2.1 Install Java SDK
- 2.2 Install Grails 3
- 2.3 Start a muti-build Grails 3 project
- 2.4 IDE support for Grails 3
- 2.5 Add a plugin to the multi-build project
- 2.6 Sandbox for Groovy
- 2.7 Source control with Git
- 2.8 Deployment in AWS Cloud
- 2.9 Continuous Delivery with Jenkins
3. A greenfield project and a way of working
- 3.1 Structuring the project
- 3.2 A way of specifying application requirements
3.3 Main techniques used in the sample project
- 3.3.1 TDD
- 3.3.2 BDD
- 3.3.3 DDD
- 3.3.4 Clean Code
- 3.3.5 Lean Startup
3.4 A greenfield application specification
- 3.4.1 Admin application
- 3.4.2 Web application
- 3.4.3 Microservice
- 3.4.4 Features to be implemented
- 1. Introduction to Grails 3
PART 2 - Practical example with Grails 3
4. The Admin Portal - Web Profile
- 4.1 Specification for the admin portal
- 4.2.1 Grails 3 security
- 4.2.2 Spring Security Core plugin
- 4.2.3 Advanced Grails security
- 4.2.4 Spring Security AppInfo plugin
4.3 Modeling the domain
- 4.3.1 Domain entities
- 4.3.2 Relationships between entities
- 4.3.3 Modeling with TDD
4.4 UI Scaffolding
- 4.4.1 Scaffolding plugin
- 4.4.2 Fields plugin
- 4.5.1 Populate the database at bootstrap
- 4.5.2 Configuring data sources
- 4.5.3 Production database with AWS RDS
- 4.6 To do list
5. A Web Rich Client - Angular Profile
- 5.1 Specification for the web application
5.2 Server side
- 5.2.1 Domain module
- 5.2.2 The REST API
- 5.2.3 Security
5.3 Client side
- 5.3.1 Introduction in AngularJS framework
- 5.3.2 Scaffolding the client side
- 5.3.3 Introducing the new style
- 5.3.4 Asset pipeline plugin
5.4 Production ready
- 5.4.1 Buy and host your domain on Elastic Beanstalk
- 5.4.2 S3 alternative for hosting your client app
- 5.4.3 Add HTTPS support
- 5.4.4 SEO - Search Engine Optimization
- 5.4.5 Analytics
- 5.5 To do list
6. The Mobile Application - Rest API Profile
- 6.1 About this chapter content
6.2 Introduction to Ionic 2 and Hybrid Mobile Applications
- 6.2.1 Install Ionic 2
- 6.2.2 Generate client app
- 6.2.3 Angular 2
- 6.2.4 Cordova
- 6.2.5 Ionic Native
6.3 Rest API
- 6.3.1 From verbs to nouns
- 6.3.2 Swagger specification
- 6.3.3 REST Security on the server side
- 6.3.4 REST Security on the client side
6.4 To the app store
- 6.4.1 Google Play Store
- 6.4.2 Apple App Store
- 6.4.3 Windows App Store
- 6.5 To do list
7. Microservice - Rest API Profile
- 7.1 About this chapter content
- 7.2 Introduction to microservices
- 7.3 Scheduling a job with Quartz
- 7.4 Expose a REST service
- 7.5 Starting the microservice
- 7.6 Microservice security
- 7.7 To do list
- 4. The Admin Portal - Web Profile
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
C++ Best PracticesJason Turner
Level up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
OpenIntro StatisticsDavid Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntro
A complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
Functional Design and ArchitectureAlexander Granin
Software Design in Functional Programming, Design Patterns and Practices, Methodologies and Application Architectures. How to build real software in Haskell with less efforts and low risks. The first complete source of knowledge.
Atomic KotlinBruce Eckel and Svetlana Isakova
For both beginning and experienced programmers! From the author of the multi-award-winning Thinking in C++ and Thinking in Java together with a member of the Kotlin language team comes a book that breaks the concepts into small, easy-to-digest "atoms," along with exercises supported by hints and solutions directly inside IntelliJ IDEA!
C++20 is the next big C++ standard after C++11. As C++11 did it, C++20 changes the way we program modern C++. This change is, in particular, due to the big four of C++20: ranges, coroutines, concepts, and modules.
The book is almost daily updated. These incremental updates ease my interaction with the proofreaders.
Introductory Statistics with Randomization and SimulationMine Cetinkaya-Rundel, Christopher Barr, OpenIntro, and David Diez
A complete foundation for Statistics, also serving as a foundation for Data Science, that introduces inference using randomization and simulation while covering traditional methods.
Leanpub revenue supports OpenIntro, so we can provide free desk copies to teachers interested in using our books in the classroom.
More resources: openintro.org.
Java OOP Done RightAlan Mellor
Object Oriented Programming is still a great way to create clean, maintainable code. But only if you use it right.
This book gives you 25 years of OO best practice, ready to use.
You'll learn to design objects behaviour-first, use TDD to help, then confidently apply Design Patterns, SOLID principles and Refactoring to make clean, crafted code.
Ansible for DevOpsJeff Geerling
Ansible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
Composing SoftwareEric Elliott
All software design is composition: the act of breaking complex problems down into smaller problems and composing those solutions. Most developers have a limited understanding of compositional techniques. It's time for that to change.
Cloud StrategyGregor Hohpe
“Strategy is the difference between making a wish and making it come true.” A successful migration to the cloud shouldn’t be driven by wishes, but guided by a sound strategy, frameworks, and decision models. This book tells you how—without becoming superficial nor getting lost in technology and product details.
Software Architecture for Developers: Volumes 1 & 2 - Technical leadership and communication
2 Books"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before...
CCIE Service Provider Ultimate Study Bundle
2 BooksPiotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification...
Cisco CCNA 200-301 Complet
4 BooksCe lot comprend les quatre volumes du guide préparation à l'examen de certification Cisco CCNA 200-301.
CCDE Practical Studies (All labs)
3 BooksCCDE lab
Modern Management Made Easy
3 BooksRead all three Modern Management Made Easy books. Learn to manage yourself, lead and serve others, and lead the organization.
The Future of Digital Health
6 BooksWe put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy and how technology giants such as Amazon or Google want to conquer...
Modern C++ by Nicolai Josuttis
Django for Beginners/APIs/Professionals
"The C++ Standard Library" and "Concurrency with Modern C++"
2 BooksGet my books "The C++ Standard Library" and "Concurrency with Modern C++" in a bundle. The first book gives you the details you should know about the C++ standard library; the second one dives deeper into concurrency with modern C++. In sum, you get more than 600 pages full of modern C++ and about 250 source files presenting the standard library...
Linux Administration Complet
4 BooksCe lot comprend les quatre volumes du Guide Linux Administration :Linux Administration, Volume 1, Administration fondamentale : Guide pratique de préparation aux examens de certification LPIC 1, Linux Essentials, RHCSA et LFCS. Administration fondamentale. Introduction à Linux. Le Shell. Traitement du texte. Arborescence de fichiers. Sécurité...