An application which uses cowboy as http server and riak as database to transfer data.It is just a sample.
-
change dir to transfer, run the command
rebar3 auto
-
start transfer application
application:ensure_all_started(transfer).
curl -i -X PUT --data-binary @obj_1.txt http://localhost:8080/api/obj/1
curl -X GET http://localhost:8080/api/obj/1 > 1.obj