Comments (15)
Hello
Ktor sounds interesting, but the lack of documentation is a no go for me.
from ktor.
@binhonglee did you add a dependency to ktor-html-builder
module?
from ktor.
Agree. What would be 5 top topics to cover first?
from ktor.
- Application Lifecycle
- Pipeline
- Feature Authentication
- Location
- Hosting
Would be nice to have a README.MD explaining each ktor-samples main goal or the wiki documentation could use the ktor-samples as code samples to each feature.
from ktor.
I did not reply with any priority order, but I think Hosting would be nice to see first together with a "How to run a hello world"
from ktor.
Maybe it can help in a section Hello world with gradle
https://github.com/BugsBunnyBR/base-ktor-gradle
from ktor.
Definitely agreed, here -- I wish I had found your demo before getting started. Being new to gradle/maven, I had a hard time figuring out exactly what to include to resolve the dependencies. Luckily the folks on slack were very helpful.
from ktor.
I created a "PR-able" repository for wiki: https://github.com/Kotlin/ktor-wiki
Would you mind contributing Gradle.md
with description how to setup Ktor application with gradle, step by step?
from ktor.
@PascalLeMerrer We're adding documentation. Have you checked out the wiki? Most of the items in this issue are already there or being worked on.
from ktor.
Yes, I've checked it again yesterday, and although I've seen progress compared to what it was a few months ago, there are still blank pages, and it seems quite light for a documentation. So it remains a bit too early to adopt it for me.
Anyway, it's great to know you're working on it, and I hope it will be mature enough to use it on my next Kotlin project. Thanks for your efforts!
from ktor.
Documentation is messed up. Some links in the Wiki lead not to the places they mean to. Most of the classes I've searched not even documented in the source code.
I am considering moving from Ratpack to Ktor (since I generally like Kotlin more than Groovy), but currently I can't find my way around. For example, I need to change routing after application is started. In Ratpack it is done by reloading configuration, but I can't see how it could be done in Ktor.
from ktor.
So uhh... Where should I go for any kind of documentation now? The link above is dead and official website barely has anything (that actually works) in it.
from ktor.
@binhonglee In official Ktor repo u can find a lot of examples. Did u try it?
from ktor.
@qwertukg This is the official repo right? Or is there a different repo? I tried for example in this page, does this
import io.ktor.html.*
as seen on that page but was thrown an error (saying that package doesn't exist) while all the other ktor import was fine. Still couldn't figure out how to do a respondHtml
.
from ktor.
@orangy Thanks! That fixed the problem. But yea, I ended up opting for Spark instead.
from ktor.
Related Issues (20)
- Ktor/Netty hang up while Ktor/Jetty is fine HOT 2
- `Route.param()` is not work
- Random NPEs in CIOEngine HOT 1
- Invalid hex byte exception when decoding invalid query string HOT 1
- parameters in the builder is not configurable HOT 1
- Ktor works fine in Intellij but not on command line HOT 1
- Project 'tomcat-war' not found in root project HOT 5
- I have the same exception in version 1.6.2. HOT 2
- DefaultRequest Plugin - InvalidMutabilityException When Changing Anything Except Protocol - 2.0.0-beta-1 on iOS HOT 1
- Ktor server :: not working when application in background Android API 21 (5.0+) HOT 2
- Old version of jwt HOT 1
- Jetty Engine - Overwriting custom handlers HOT 1
- Could not find io.ktor:ktor-gson:2.0.2 HOT 2
- Dependency Dashboard
- Can't pass SSL handshake on KMM project
- CIO Request Timed Out on large files HOT 4
- question: why to set full url in packet instead of just query for proxy? HOT 4
- ReaderJob & WriterJob leak in TLS socket and prevent context from completion HOT 3
- Bearer auth token refresh hangs after prior refresh threw an exception HOT 1
- renderSetCookieHeader shouldn't ignore maxAge = 0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktor.