Skip to content

dam0/OpaStorage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

A simple key-value store built in Opa.

Keys and values are stored as strings.

Public API:
* POST some_key   => adds [(some_key, body)] to the storage.
* GET  some_key   => if [(some_key, some_body)] appears in the storage, return [some_body] as text/plain, otherwise 404 (Not found)
* DELETE some_key => if [(some_key, some_body)] appears in the storage, delete it, otherwise ignored
* everything else => 405 (Method not allowed)


BUILDING
 make

LAUNCHING
On one server:
 ./opa_storage.exe
(launches on port 8080)

or
 ./opa_storage.exe --server-port nnnn

On many servers:
  opa-cloud opa-storage.exe --host localhost --host me@my_second_server --host me@my_third_server

About

A key-value store in Opa

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published