Fork me on GitHub
Follow Spark on Twitter Follow Spark on Google Plus Like us on facebook

Creating an AJAX todo-list without writing JavaScript

Learn how to create a modern single page application in Spark and intercooler.js without writing JavaScript.

Creating a library website with login and multiple languages

In this tutorial you will learn how to create a basic Spark application with filters, controllers, views, authentication, localization, error handling, and more.

Implement CORS in Spark

Some boilerplate code to enable CORS on your Spark server.

Developing with the Spark Debug Tools (beta)

In this tutorial you will learn how to use the Spark Debug Tools for easier development.

Using WebSockets and Spark to create a real-time chat app

In this tutorial you will learn to work with WebSockets to create a real-time chat app.
Some (simple) JavaScript is required.

Spark and Testing - Part 2: Functional tests

In this tutorial series you will learn an approach for writing testable Spark applications from the ground up. In part one we looked at what and when to test, and wrote unit tests. In this post we will have a look at functional tests.

Building a Mini Twitter Clone

This tutorial will walk you through the steps of creating a mini Twitter clone using Spark, Freemarker, Spring, and HSQLDB to show you how to build a simple but complete web application.

Deploying Spark on Heroku

In this tutorial you will learn how to deploy a Hello World application on Heroku!

Spark Video Tutorials

Our friends over at learnhowtoprogram.com have been working on a series of Java courses for beginners, all of which feature Spark. This post contains an overview of these courses with direct links to their videos.

Spark and Testing - Part 1: Background and Unit Tests

In this tutorial series you will learn an approach for writing testable Spark applications from the ground up. In part one we will discuss what and when to test, and write some unit tests. In part two we will cover functional tests.

Spark on Raspberry Pi

This tutorial will show you how to turn your Raspberry Pi into a webserver in a matter of minutes, using Spark and Groovy. Spark was chosen for the tutorial because "Spark is as easy as it gets".
The tutorial is written by Renato Athaydes and originally appeared on his google site.

Spark and Freemarker: Exposing HTML and JSON from the same service

In previous posts we have seen how to develop a RESTful service using Spark and we have implemented a service to manage a blog. In this post we are going to create an HTML view of the blog, showing how the same data can be exposed through both JSON and HTML.

Spark and Databases: Configuring Spark to work with Sql2o in a testable way

This tutorial will teach you how to use a database with your Spark application. We will discuss when it is appropriate to use an ORM and describe how you can organize your code to make it easily testable.

Getting started with Spark and Docker

This tutorial provides a short and simple example on how to get started with Java development on Docker.
Spark was chosen for the tutorial because it can "get you started with minimal overhead and upfront knowledge". The tutorial is written by GiantSwarm's  Matthias Lübken and originally appeared on their blog.

Spark for REST APIs: Using Spark, Lombok and Jackson to reduce Java boilerplate

This tutorial will teach you how to create a minimal RESTful application for a blog, using JSON to transfer data. You will learn about setting up a complete Spark project, using Jackson and Lombok for awesome descriptive exchange objects.

Setting up Spark with Gradle

We will learn how to set up a Spark application using Gradle. For that we will use Eclipse Luna IDE and Gradle 2.5.

Setting up Spark with Maven

In this tutorial you will learn how to set up a Spark project using Maven. It's aimed at Java beginners, and will show you how to set up your project in IntelliJ IDEA and Eclipse.

Hello Tutorials!

This website will be used to collect tutorials about Spark. We aim to provide one tutorial every month until summer:

  • April 2015: Spark for REST APIs: Using Spark, Lombok and Jackson to reduce Java boilerplate
  • May 2015: Spark and data persistence: Integration with sql2o
  • June 2015: Spark for websites: Working with Freemarker
  • July 2015: Spark in the Cloud: AWS and Docker
If you have suggestions for tutorials, or if you want your tutorial posted on this site, please leave a comment or contact us on our facebook page.