Skip to content

InTechSA/kotlin-rest-api-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Kotlin Rest API starter kit

 

Get project source

$ git clone https://github.com/InTechSA/kotlin-rest-api-starter.git

Build project using maven

$ cd kotlin-rest-api-starter/
$ mvn install
$ mvn test

Run Hello World

$ java -jar hello-world/target/hello-world-1.0-SNAPSHOT-jar-with-dependencies.jar
$ curl localhost:7000

Run basic user api example (supposing you have a mongodb instance running at localhost:27017)

$ java -jar user-api/target/user-api-1.0-SNAPSHOT-jar-with-dependencies.jar
$ curl localhost:7000/users

Stuff used to make this:

  • Kotlin : Statically typed programming language
  • Javalin : Simple REST APIs for Java and Kotlin
  • Kmongo : A Kotlin toolkit for Mongo
  • KotlinTest : Flexible and comprehensive testing tool for Kotlin

About

A minimal kotlin project to make REST API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages