SparkJava: Bootstrap

Adding a nicer looking UI, with common navigation, drop down menus, etc.

Using Bootstrap with SparkJava

The links below provide an example of a minimal SparkJava webapp that incorporates Bootstrap for building a UI.

The only parts that are particular to Bootstrap are in the mustache template files, and the CSS. The java code is completely unaffected.

Why do I care?

Bootstrap is a framework built in JavaScript and CSS that gives you an easy way to provide a nice looking user interface for your web application.

Some advantages of using Bootstrap include:

The downside of bootstrap: ridicule by the hipster crowd.

Bootstrap gets a bad rap because it is a bit cliché. The “cool kids” might make fun of you for using it. And you might wonder why.

Bootstrap is, in part, a victim of its own success. Because it is so easy to use, many web applications use it. As a result, if you use Bootstrap, there is the risk that your web application looks exactly like every other web application out there.

That doesn’t have to be the case. You can use Bootstrap, and yet still customize the CSS to give your website a custom look.

But not everyone that uses Bootstrap uses it well. Hence the bad rap.

More on SparkJava: Bootstrap