shaobin0604 / android.embeddedserver

πŸš€A minimal way to create HTTP server in android with Kotlin. Create asynchronous client and server applications. Anything from microservices to multiplatform HTTP client apps in a simple way. Open Source, free, and fun!

Home Page:https://medium.com/geekculture/android-embedded-server-with-ktor-26e7c576263d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ€– Android Embedded Server

Build Status

-----------------------------------------------------

πŸ‘‡ Overview

A minimal way to create HTTP server in android with Kotlin. Create asynchronous client and server applications. Anything from microservices to multiplatform HTTP client apps in a simple way. Open Source, free, and fun!

embeddedServer(Netty, PORT, watchPaths = emptyList()) {
            install(WebSockets)
            install(CallLogging)
            routing {
                get("/") {
                    call.respondText(
                        text = "Hello!! You are here in ${Build.MODEL}",
                        contentType = ContentType.Text.Plain
                    )
                }
            }
        }

πŸš€ How to use

Cloning the repository into a local directory and checkout the desired branch:

git clone git@github.com:nphau/android.embeddedserver.git
cd android.embeddedserver
git checkout master

🍲 Screenshots

✨ Contributing

Please feel free to contact me or make a pull request.

πŸ‘€ Author

Copyright (c) $today.year . All rights reserved.
Last modified $file.lastModified

About

πŸš€A minimal way to create HTTP server in android with Kotlin. Create asynchronous client and server applications. Anything from microservices to multiplatform HTTP client apps in a simple way. Open Source, free, and fun!

https://medium.com/geekculture/android-embedded-server-with-ktor-26e7c576263d

License:MIT License


Languages

Language:Kotlin 98.9%Language:Shell 1.1%