Tutorials
Some of the tutorials have code examples in both Kotlin and Java (check the blue tags), but it should be easy to follow along even if they don’t. The official tutorials are simple and mainly focus on one core concept at the time, while the community tutorials are usually more complex.
-
Building an Omegle clone in Javalin
In this tutorial we will build a simple WebRTC video conference application in Javalin. The application will be similar to Omegle, where you are paired with a random stranger and can chat with them.
java kotlin -
Bazel setup
Run your Javalin app with Bazel, from a template project
kotlin -
A quick intro to SSL in Java
Learn how SSL works and how to secure your Javalin application with SSL.
java kotlin -
Docker setup
Create a Docker image from your Javalin application.
java -
Testing Javalin Applications
Learn how to run different kinds of tests in Javalin. Unit tests, functional/integration tests, UI/end-to-end tests.
java kotlin -
Documenting endpoints with OpenAPI 3
Learn how to document endpoints using OpenAPI 3, and how to render interactive docs using Swagger UI and ReDoc
java kotlin -
Simple frontends with Javalin and Vue
The tutorial shows how to use the JavalinVue plugin for simplified frontend development
kotlin -
Jetty session handling
The tutorial includes persisting sessions locally and in a database, as well as caching and clustering
java kotlin -
WebSockets Google Docs clone
Learn how to create a very basic clone of Google Docs with WebSockets in Javalin
java kotlin -
Creating monitoring dashboards
Learn how to setup monitoring using Prometheus (and Grafana)
java kotlin -
WebSockets chat application
Learn how to create a simple chat-app with WebSockets in Javalin
java kotlin -
Secure your endpoints!
Learn how to secure your endpoints using before-filters and route-roles
java kotlin -
Sending emails from a Javalin backend
Create a 'Contact us' form with email sending (gmail) with a Javalin backend
java kotlin -
HTML forms & Javalin backend
Learn how to get/post HTML forms to a Javalin backend
java kotlin -
Single-page app with Kotlin and Vue.js
Use Vue.js and Kotlin to create the famous TODO MVC app
kotlin -
Deploying to Heroku
Deploy a Javalin Hello World application on Heroku!
java -
Kotlin CRUD REST API
Use Kotlin with Javalin to create a simple CRUD REST API.
kotlin -
Gradle setup
Set up a Javalin project using Gradle in IntelliJ IDEA
kotlin -
Maven setup
Set up a Javalin project using Maven in IntelliJ IDEA and Eclipse.
java
-
Using Javalin with Hibernate ORM
Learn how to make Javalin work with Hibernate.
java kotlin gradle hibernate sql -
Extra details on Javalin and logging providers
Explaining detailed logging configuration on Javalin
java kotlin maven -
mTLS in Javalin
Learn how to secure your Javalin application with mTLS.
java kotlin -
Javalin with Java Platform Module System (JPMS) and Gradle
Learn how to create a Javalin application with the Java Platform Module System (JPMS), Gradle and the built-in dependency injection mechanism through Java's ServiceLoader
java -
Using Javalin with Bukkit, Spigot, Paper, BungeeCord, or Waterfall!
Learn how to make Javalin work with most modern Minecraft servers.
java -
Serving Protobuf via a REST API
Learn how to serve protobuf without the use of a gRPC API
java -
Javalin as a simulator for HTTP-based APIs
Let's learn how you can test that your app is properly consuming an external REST API making use of Javalin as a simulator of HTTP APIs that your app depends upon.
kotlin -
Frontends With Mithril and Javalin
This tutorial shows how to use the JavalinMithril plugin for simplified frontend development
java -
Tracing Javalin Application
A tutorial on how to trace Javalin based applications using Elastic Application Performance Monitoring.
java -
Using Sureness to protect the security of Javalin REST API.
Using Sureness to secure Javalin REST API by providing authentication(JWT,Basic,Digest) and authorization(RBAC)"
java -
Deploy Kotlin REST API to Raspberry Pi.
Use Kotlin with Javalin to deploy a REST API to run on a Raspberry Pi"
kotlin -
Rendering jte templates in Javalin
Learn how to do type-safe server side rendering using jte.
java kotlin -
Mockito Testing
Mocking Javalin objects with Mockito.
java -
Embed Javalin Into Servlet Container
Running Javalin Embedded In Tomcat Without Jetty
kotlin -
Running on GraalVM (22MB total size)
Building a 22 Megabytes Microservice with Docker, Java, Javalin and GraalVM
java -
JWT in a Javalin Application
Learn how to use JWT with Javalin
java -
Java 10 and Google Guice
Learn how to create Javalin application with Java 10 and Google Guice
java -
Real time analytics with influxDB
Learn how to setup Javalin with docker and influxDB
kotlin -
Basic website structure
Create a basic website in Javalin with controllers, authentication, localization, etc.
java