Skip to content

chintootech/AdventServer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build & run

$ sbt 'run-main com.github.chintootech.StoreServer -admin.port=:49991 -bind=:49091'
$ sbt 'run-main com.github.chintootech.SearchServer -admin.port=:49992 -bind=:49092'
$ sbt 'run-main com.github.chintootech.CacheServer -admin.port=:49993 -bind=:49093'
$ sbt 'run-main com.github.chintootech.HTTPServer -admin.port=:49990 -http=:48000 -search=:49092 -cache=:49093 -db=:49091'
$
$ curl -XPOST http://localhost:48000/ -d'hello world'
OK
$ curl -XPOST http://localhost:48000/ -d'世界世界'
OK
$ curl -XPOST http://localhost:48000/ -d'hello 世界'
OK
$ curl -XPOST http://localhost:48000/ -d'こんにちわ'
OK
$ curl -XPOST http://localhost:48000/ -d'こんにちわ世界'
OK
$ curl http://localhost:48000/hello
["hello 世界","hello hello"]
$ curl http://localhost:48000/世界
["hello 世界","こんにちわ世界","世界世界"]

Releases

No releases published

Packages

No packages published

Languages

  • Scala 88.0%
  • Shell 8.0%
  • Thrift 4.0%