Skip to content

tginsberg/springboot2-reactive-kotlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactive Spring Boot 2 with Kotlin

license

This code supports a blog post I wrote, and implements a simple counter using Spring Boot 2.0, Kotlin, and Redis.

Update 2020-05-27: There is a new version of this project using Kotlin Coroutines and an accompanying blog post!

Getting The Code

git clone https://github.com/tginsberg/springboot2-reactive-kotlin.git

Requirements

  1. Gradle 4.0+
  2. Java 1.8
  3. Redis installed and ready to use
  4. A cursory understanding of reactive concepts and Spring Boot

Running the server

gradlew bootRun

Endpoints

Purpose Method URL Accept Header
Current state of counter GET /api/counter application/json
Counter event stream GET /api/counter text/event-stream
Increment counter PUT /api/counter/up application/json
Decrement counter PUT /api/counter/down application/json

About

A simple counter using Spring Boot 2 and Kotlin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages