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

Nodejs express server engine implementation #1700

Open
hovi opened this issue Mar 4, 2020 · 2 comments
Open

Nodejs express server engine implementation #1700

hovi opened this issue Mar 4, 2020 · 2 comments

Comments

@hovi
Copy link

hovi commented Mar 4, 2020

I have my core code in multiplatform kotlin and want to run it as web app. I was able to run it using pure nodejs or using ktor on jvm. I was thinking of making wrapper around node express so that I can use same code to define my routing and reduce code duplicity.

How would I proceed to do that?
Anyone already tried doing this?
I found ktor-server-core module, but it doesn't seem to be multiplatform, or I just couldn't make it work in multiplatform project (only when I used it as jvm-module dependency).

Edit: Seems like whole ktor-server-core code is in jvm directory so even though it's multiplatform module, code is jvm-only. Way to fix is to split this code into common and jvm pieces. This is just from brief look into code and not much knowledge of ktor.

@cy6erGn0m cy6erGn0m self-assigned this Mar 5, 2020
@cy6erGn0m cy6erGn0m added this to the 1.4.0 milestone Mar 5, 2020
@cy6erGn0m
Copy link
Contributor

Not sure if we need Express engine itself, but an engine for NodeJS would be useful, right.

@oleg-larshin
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

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

3 participants