Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test project for use nodejs in kotlin. Api raised on a nodejs with kotlin controllers.

License

vns0/kotlin-nodejs

Repository files navigation

kotlin-node example

The project was created to demonstrate the possibility of hybrid use of two technologies. The idea is to write on what you know (javascript) and the ability to get multithreading (kotlin). If you are interested in this topic - write to me, maybe I can help you)

Kotlin [Inst]

Clone the repository and cd the working directory:

git clone git@github.com:nikitavoryet/kotlin-nodejs.git
cd kotlin-nodejs

Build and run the program:

npm i
npm run build
npm run start

Curl Example:

curl 'http://localhost:3000/getCryptoFakeRate'
response: [{"name":"BTC","price":60768.63,"pair":"USD","sign":"$"},{"name":"ETH","price":4210.93,"pair":"USD","sign":"$"}]
curl 'http://localhost:3000/getCryptoFakeRate?code=BTC'
response: [{"name":"BTC","price":60768.63,"pair":"USD","sign":"$"}]
curl 'http://localhost:3000/getCryptoFakeRate?code=NotFound'
response: [{"name":"BTC","price":60768.63,"pair":"USD","sign":"$"},{"name":"ETH","price":4210.93,"pair":"USD","sign":"$"}]
author: 
Name: Nikita
Company: SmartWorld
Position: TeamLead
Mail: n.vtorushin@inbox.ru
TG: @nikitavoryet
Year of birth: 1999
FullStack: JS/GO

About

test project for use nodejs in kotlin. Api raised on a nodejs with kotlin controllers.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages

AltStyle によって変換されたページ (->オリジナル) /