Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation #64

Closed
juliocbcotta opened this issue Jan 17, 2017 · 15 comments
Closed

Documentation #64

juliocbcotta opened this issue Jan 17, 2017 · 15 comments
Assignees

Comments

@juliocbcotta
Copy link
Contributor

Hi, I would like to have some documentation of ktor before using it. The Wiki has some links with empty content.

@orangy
Copy link
Contributor

orangy commented Jan 17, 2017

Agree. What would be 5 top topics to cover first?

@juliocbcotta
Copy link
Contributor Author

  • 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.

@juliocbcotta
Copy link
Contributor Author

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"

@juliocbcotta
Copy link
Contributor Author

Maybe it can help in a section Hello world with gradle
https://github.com/BugsBunnyBR/base-ktor-gradle

@tmseiler
Copy link

tmseiler commented Mar 6, 2017

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.

@orangy
Copy link
Contributor

orangy commented Mar 12, 2017

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?

@PascalLeMerrer
Copy link

Hello
Ktor sounds interesting, but the lack of documentation is a no go for me.

@hhariri
Copy link
Contributor

hhariri commented Apr 28, 2017

@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.

@PascalLeMerrer
Copy link

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!

@altavir
Copy link

altavir commented May 26, 2017

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.

@binhonglee
Copy link

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.

@qwertukg
Copy link

@binhonglee In official Ktor repo u can find a lot of examples. Did u try it?

@binhonglee
Copy link

@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.

@orangy
Copy link
Contributor

orangy commented Jan 13, 2018

@binhonglee did you add a dependency to ktor-html-builder module?

@binhonglee
Copy link

@orangy Thanks! That fixed the problem. But yea, I ended up opting for Spark instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants