Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 1.4 KB

README.md

File metadata and controls

7 lines (5 loc) · 1.4 KB

Proper boilerplate project for Spark

This is a boilerplate project for developing lightweight web apps with Spark- a micro framework for creating web apps in Java 8 with minimal effort.

Project contains simple implementations of commonly needed features like localization and authorization with simple role based security. File structure organized using "package by feature" style, it has more advantages than a standard "package by layer" approach, which is used everywhere. On client side we have Skeleton- a dead simple, responsive boilerplate for front-end that can be easily replaced by any more complex solutions like Bootstrap, Foundation, MDL or whatever you want. All view templates is managed by Apache Velocity template engine, it's simple, fast and provides much more flexibility than rusty Java Server Pages. Also, for convenience testing and simpler object construction used Google Guice, but it can be easily removed if you prefer to do everything by yourself.

More features will be added later: example of APIs, database integrations, unit and integration tests, etc. Also live example available on Heroku