From 2daaa9ada2754448a25686d66d9fc0ad25945265 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 15 Oct 2010 13:51:12 +0200 Subject: improved README --- README | 51 ++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 7 deletions(-) (limited to 'README') diff --git a/README b/README index 7ef9c8f..7e35fe5 100644 --- a/README +++ b/README @@ -1,7 +1,44 @@ -to compile: execute "make" in the top directory -to start the server: run server/start.sh -to start a client: cd client, erl -sname -in the client: - client:register(,,). - client:login(,,). - now you can use client:list(), client:getVotes(), client:vote() and client:devote() +Compilation +=========== + +execute "make" in the top directory + + +Execution +========= + + +Server: + +execute "server/start.sh" +If you want to have network support, you maybe have to supply your public IP adress as first parameter to that script. + + T +Client: + +cd client, erl -name + + +In the shell you can use the following commands: + + client:register(, , ). + Register the first user account (admin). + + client:login(, , ). + Login on the server. + + +If you are logged in the server you can us the following commands: + + client:list(). + List all media objects. + + client:getVotes(). + Get your available votes. + + client:vote(, ). + client:devote(<artist>, <title>). + Vote or devote the given media object. + + client:register(<username>, <password>). + (only for admin accounts) Register a new user account. -- cgit v1.2.3