slowli / fib-kotlin

Fibonacci numbers service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fibonacci numbers service

Simple service built using Kotlin and Spring framework.

Installation

Install JDK and Maven; this is largely automated by using an IDE, such as IDEA. You will also need to install Redis, although this can replaced with instantiating it via Docker:

docker run --name redis -d -p 6379:6379 redis:alpine

Usage

Run the Application class (e.g., via IDEA). On success, the site should be available on localhost, which should display auto-generated Swagger API docs, where you can check that the service works properly.

Docker

Build the service image using

docker build -t fib-service .

...and then run it locally using Docker Compose:

docker-compose up -d fib-service 

License

Licensed under the Apache 2.0 license.

About

Fibonacci numbers service

License:Apache License 2.0


Languages

Language:Kotlin 98.6%Language:Dockerfile 1.4%