Skip to content

πŸš€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!

License

Notifications You must be signed in to change notification settings

nphausg/android.embeddedserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– 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:nphausg/android.embeddedserver.git
cd android.embeddedserver
git checkout master

🍲 Static resource

Config Demo
    staticResources("/static", ""){
        default("index.html")
    }

🍲 Screenshots

Fruits Detail
Device Connect

✨ Contributing

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

πŸ‘€ Author

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!

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published