http4k
rack-test
Our great sponsors
http4k | rack-test | |
---|---|---|
5 | 2 | |
2,494 | 916 | |
0.9% | 0.1% | |
9.8 | 3.9 | |
1 day ago | about 1 month ago | |
Kotlin | Ruby | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
http4k
-
What's the state of server-side frameworks with Kotlin support today for small teams?
You named Express as an example for a good framework - I'd say both http4k and ktor come close to it. Spring Boot would really be on the other end and I met lots of JS/TS devs that didn't even want to touch it. I did have the same impression than you though: Documentation for ktor is not great at all.
-
Which backend Frameworks for Web App is easy to learn?
http4k has excellent documentation and very simple concepts.
- Jackson, moshi or kotlinx.serialization?
-
Application-as-a-Function Thinking
I couple of years ago I was lucky to use http4k, a server as a function web library for Kotlin. It was such a wonderful change compared to every other technologies available in both Java and Kotlin. It's simple.
Testing becomes so much easier too, as one can instantiate a the whole web routing aspect, without having to bind it to a port and having to send real http requests.
If strongly suggest people to take a look at it. It's not perfect, but it's a lot simpler than other frameworks and libraries. And it's a shift in some of the current mentality of using heavy frameworks (such as spring boot) which blow up anyone's cognitive load.
https://github.com/http4k/http4k
-
How is the market for Kotlin developers where you live?
http4k with the contract, format-jackson, and server-undertow modules
rack-test
-
Test Driving a Rails API - Part Two
In this part, we’ll set up our testing environment so that we can test our Rails API using minitest with minitest/spec. We’ll look at the differences between traditional style unit tests and spec-style tests, or specs. I’ll demonstrate why you should use minitest-rails. We’ll look at using rack-test for testing our API. We’ll even create our own generator to generate API specs.
-
Application-as-a-Function Thinking
The "app-as-function" has some very concrete applications though, even outside languages like Haskell. The [rack-test](https://github.com/rack/rack-test) gem (and similar languages) work exactly like this: they run the "app" part without the "web server" part to enable much easier testing. Rack middlewares similarly treat the enclosed app as just a function taking some specified input and returning some output value.
What are some alternatives?
ktor - Framework for quickly creating connected applications in Kotlin with minimal effort
timecop - A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.
javalin - A simple and modern Java and Kotlin web framework [Moved to: https://github.com/javalin/javalin]
minitest-rails - Minitest integration for Rails
voyager-server-spring-boot-starter - Easily create REST endpoints with permissions (access control level) and hooks includeded
vertx-lang-kotlin - Vert.x for Kotlin
kotlinx.html - Kotlin DSL for HTML
kraph - GraphQL request string builder written in Kotlin
Jooby - The modular web framework for Java and Kotlin
KGraphQL
apollo-android - :robot: A strongly-typed, caching GraphQL client for the JVM, Android, and Kotlin multiplatform.
kottpd - REST framework written in pure Kotlin