Awesome
Sparkjava-Beers
A server-side companion to the *.beers projects
My different Beers tutorials (Angular Beers, Vue Beers, Lit-Element Beers are standalone, they can be used without any backend.But IMHO it is a pity to do only the client-side and mocking the server API with plain files. So here we have a companion project where we are going to do the server-side of angular-beers using Spark, tiny Sinatra inspired framework for creating web applications in Java 8 with minimal effort.
What are the objectives of this tutorial
Follow this tutorial to learn to build APIs in Java quickly an easily, without all the pain of the classic JEE stack. You will use the Spark framework, with some drops of SQL (with h2) and NoSQL databases (with MongoDB, work in progress).
What do I need to use this tutorial
You will need a web-browser and your favorite Java IDE (I can suggest IntelliJ IDEA or Eclipse, but any other will do it). You will also need the Gradle build tool.
How is the tutorial organized
As many computers used for the course haven't Git, we have structurated the project to allow a Git-less use. The src
directory is the sources directory of the project, the working version of the code. The tutorial is divided in steps, each one in its own directory:
And two optional possibilities:
In each step directory you have a README file that explain the objective of the step, that you will do in the working directory app
. If you have problems or if you get lost, you also have the solution of each step in the step directories.