Skip to content

ruXlab/kwitter-demo

Repository files navigation

kwitter-demo

Demo project for GDG Reading Meetup

What is it?

It's a simple kwitter REST server - no ads, no registration, no UI, nothing really

It allows to list all kweets, retrieve by id, create, by user handle, search and even view kweets in the browser in classy 1990 interface(no gifs tho)

How to start this thing?

Just run ./gradlew run

Created using

  • kotlin 1.3.21
  • javalin 2.6.0
  • kotlinx.html 0.6.12

Useful commands (using httpie)

  • Get all kweets - http :7777
  • Get kweet by id http :7777/3
  • Get ruxmind's kweets - http :7777/u/ruxmind
  • Post kweet http POST :7777/ handle=ruxmind text="What a kool startup"
  • Search by text http :7777/search/startup

For simple web UI open localhost:7777/web

Web UI

There is an example of very basic read-only web UI built using kotlinx.html

sample webpage

Links

Releases

No releases published

Packages

No packages published

Languages