Hello. I'm beginning on Kotlin, and I would like t...
# server
a
Hello. I'm beginning on Kotlin, and I would like to trying it using Ktor. Is possible create a local server on Mac to use Ktor ? I look at the site https://ktor.io but i did not find
m
Take a look at the examples in the ktor repo. I also built my own sample to help people get started: https://bitbucket.org/marshallpierce/ktor-demo
l
See: https://ktor.io/quickstart/index.html And when you have IntelliJ you can also download the Ktor plugin and it will provide you a new project template (this is here: https://ktor.io/quickstart/quickstart/intellij-idea.html)
n
there’s a dedicated #ktor channel
a
@lukaswelte tks, but I would to trying run without use plugin. Because I will create a server on AWS
@nfrankel tks
n
you’re welcome 👍
l
Sure, but the plugin does bootstrap a project for you which contains either maven or gradle. So it is only there for bootstrapping the project, but you are not tied to the plugin -> so totally save to use (essentially it is like https://start.spring.io/ but as part of IntelliJ, also like the Spring starters in IntelliJ are)
a
Hum got it. tks @lukaswelte I Will test the @mp sample too. If someone has more sample how to create a server #ktor on Mac, send me please. Sorry my English is not very good
f
Mac is not really relevant since this is the JVM, every sample you can find will run on a Mac as well as any OS :) Have you done any server code before? Ktor is pretty unopinionated so you can structure the code a bit how you want, similar to node.js
a
Hello @frellan I already did code to backend, code Java, but never config a local server to test the code. So I'm tried to create it on my Mac to test Kotlin without use plugin IDE to simulate a real environment that code will hosted to be used by users I back to test on next weekend, I'll use the suggestions the the guys put here. If you have suggestions put here TKS for help
Sorry my English, Im from Brazil and don't write very well