About the Book

Learn lean application engineering techniques building a single page web application and RESTful web services using Backbone.Marionette.js and the Spring Framework. Eliminate wasteful boilerplate code and focus on your features.

This book is a full-stack engineering experience. Build both a single-page application, SPA, client-side user interface and a complete set of RESTful web services. Begin by rapidly prototyping using an in-memory database. Then learn to integrate with both MySQL and MongoDB.

Ready for production? We've got you covered. The book dedicates chapters to development operations and production operations. Learn to quickly, simply, and reliably build, package, configure, deploy, and monitor the applications in production server environments.

Share this book

Feedback

About the Author

I fell in love with technology at a young age. Using my family's first computer, it wasn't enough to play games or to see what I could do with some software package. I needed to know how it worked... what made it tick... how the pieces fit together.

As I grew older and started a career as a software engineer, my curiosity only grew. That drive to understand the technologies I used to perform my job made me a better technologist. Sometimes though, the road to deeper understanding was painful. Sometimes the documentation is difficult to find, scattered among blog posts or forums.

In my books, I share what I have learned throughout nearly two decades as a technology professional. Each book is a journey that we take together, learning while we build and building while we learn. After all, building new tech is fun. Learning something along the way is a bonus.

Table of Contents

Part I. Introduction

Paradigm Shift

About the Book

Intended Audience

Git Repositories

Web Services

Single Page Application

Part II. Server Foundation

Bootstrap the Server Project

A Proper Foundation

Installing the Dependencies

Choosing a Source Editor

Structuring the Project

Getting Started with Spring Boot

Updating the POM

Application.java

Starting the Server

Building the First RESTful Web Service

Cohesion

Updating the POM

Creating the Entity Model

Creating the Repository

Creating the Service

Creating the Controller

Creating the Cross-Origin Filter

Running the Application

Part III. User Interface Foundation

Bootstrap the User Interface Project

Installing the Dependencies

Choosing a Source Editor

Structuring the Project

Getting Started with Marionette

The Marionette Application

Marionette Modules

Displaying Static Content

Organizing the Application

Marionette Messaging

Event Aggregator

Commands

Request Response

Integrating with Web Services

Creating the Issue Entity

Creating the Issue Manager Module

Listing Issues at Startup

Running the Application

Part IV. CRUD

Creating Issues

Web Service

User Interface

Running the Application

Viewing Issues

Web Services

User Interface

Running the Application

Updating Issues

Web Service

User Interface

Running the Application

Deleting Issues

Web Services

User Interface

Running the Application

Part V. Production Features

Development Operations

Web Services

User Interface

Deployment Strategies

Configuration

Property Files

Property File Load Order

Using Profiles with Property Files

Spring Boot Property Reference

Production Databases

Relational Databases

NoSQL Databases

Production Monitoring and Management

Introducing Actuator

Enabling Actuator

Endpoints

Configuration

Health Check

Application Information

Metrics

Tracing

Conclusions

Part VI. Epilogue

Part VII. Appendices

Appendix A: Dependency Versions

Issue Tracker Web Services

Issue Tracker User Interface

Appendix B: Iconography

Issue Type Icons

Issue Priority Icons

Miscellaneous Icons

Appendix C: CoffeeScript

Appendix D: Gulp

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.

Free Updates. Free App. 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), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). 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.

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.