https://kotlinlang.org logo
Title
m

m

02/28/2018, 6:30 PM
is there a de facto web framework for kotlin?
b

Ben

02/28/2018, 6:44 PM
spring seems to work well. Ktor is built by kotlin guys but is still pretty beta
f

fitzoh

02/28/2018, 6:45 PM
spring boot is my go to
m

m

02/28/2018, 6:47 PM
are you guys using spring in enterprise, or smaller startups and your own projects?
I was not able to find non enterprise user facing apps in production built on spring.
f

fitzoh

02/28/2018, 6:57 PM
I’m in the “innovation center” of a large company for what’s worth.
and also use it for personal stuff, boot is very easy to get something up and running quickly
👍 2
m

m

02/28/2018, 7:04 PM
good to know. I wonder why I cannot find user facing spring apps in production.
I do want to use kotlin for my next web app, but I'm worried that spring would be the wrong choice for non enterprise.
b

Ben

02/28/2018, 7:08 PM
For non enterprise spring I saw this post yesterday https://geowarin.github.io/what-i-did-wrong-as-a-cto/
f

fitzoh

02/28/2018, 7:12 PM
the short version:
Our project was a SaaS management application. We wanted our users to have a great experience, to distinguish ourselves from the competition, and improve their productivity.

We used Kotlin and Spring Boot on the backend, React and Typescript on the frontend.

I'm really comfortable with those technologies and that's why I chose them.

Even if you're only using parts of our stack, I believe that some of the things I learned will be useful to you.
(spring boot wasn’t one of the “wrong” things in the post)
m

m

02/28/2018, 7:14 PM
thank you!
f

fred.deschenes

02/28/2018, 7:41 PM
Dropwizard works great with Kotlin as well
👍🏻 1
d

dave

02/28/2018, 7:49 PM
Short version - there’s no defacto standard. There are a few pure Kotlin that I know are used in production (http4k/ktor included), but Java frameworks such as spark and dropwizard and other will work well and are obviously also battle tested. Personally, I would avoid spring (or any other DI framework), but I know that’s not a popular option.
a

asad.awadia

03/01/2018, 1:00 AM
vert.x is my go to
👍 1
d

dave

03/01/2018, 1:32 AM
Personally, I'm up for any solution that doesn't involve magic and is a*unit* testable. If you need to launch a server to test it that's a major problem,
And that includes any "just put your app in this magic container test infra".
d

dave08

03/01/2018, 2:53 AM
But @dave, that's not a problem with vert.x inherently, but rather with all react async frameworks like node.js... I actually use a Controller wrapper for testing in Vert.x... you could use any async testing framework to do mostly the same as theirs...