removed unnecessary files
This commit is contained in:
parent
a544484f1a
commit
4591a29c21
14 changed files with 0 additions and 110 deletions
21
HOWTO
21
HOWTO
|
@ -1,21 +0,0 @@
|
||||||
PREREQUISITES:
|
|
||||||
python version 2.x set to default.
|
|
||||||
|
|
||||||
INSTALL
|
|
||||||
1. Cd into directory where you to have the project
|
|
||||||
2. git clone git@github.com:jeena/GGS.git (remember to have a local key)
|
|
||||||
3. cd GGS/
|
|
||||||
4. git submodule init
|
|
||||||
5. git submodule update
|
|
||||||
6. cd erlang_js
|
|
||||||
7. make
|
|
||||||
8. make test (Optional. It has to work though.)
|
|
||||||
10. cd ../
|
|
||||||
11. ./build
|
|
||||||
12.
|
|
||||||
|
|
||||||
USAGE
|
|
||||||
1. start a second terminal
|
|
||||||
2. in new terminal do command: ./python_client 9000
|
|
||||||
3. back to first terminal
|
|
||||||
4. ./start
|
|
6
build
6
build
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
for i in `find src -name "*.erl"`
|
|
||||||
do
|
|
||||||
erlc -o ebin $i
|
|
||||||
done
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
./build
|
|
||||||
|
|
||||||
for i in `find tests -name "*.erl"`
|
|
||||||
do
|
|
||||||
erlc -o ebin_test $i
|
|
||||||
done
|
|
17
client
17
client
|
@ -1,17 +0,0 @@
|
||||||
#!/usr/bin/env ruby -wKU
|
|
||||||
|
|
||||||
require 'socket' # Sockets are in standard library
|
|
||||||
|
|
||||||
hostname = 'localhost'
|
|
||||||
port = 7000
|
|
||||||
|
|
||||||
s = TCPSocket.open(hostname, port)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
s.print(q.chop)
|
|
||||||
|
|
||||||
while line = s.gets # Read lines from the socket
|
|
||||||
puts "Got Echo: " + line.chop # And print with platform line terminator
|
|
||||||
end
|
|
||||||
s.close # Close the socket when done
|
|
20
echo_test
20
echo_test
|
@ -1,20 +0,0 @@
|
||||||
#!/usr/bin/env ruby -wKU
|
|
||||||
|
|
||||||
require 'socket' # Sockets are in standard library
|
|
||||||
|
|
||||||
hostname = 'localhost'
|
|
||||||
port = 7000
|
|
||||||
|
|
||||||
print "Which port @ loclhost?"
|
|
||||||
port = gets
|
|
||||||
|
|
||||||
s = TCPSocket.open(hostname, port.chop)
|
|
||||||
|
|
||||||
s.print("__hello 0")
|
|
||||||
|
|
||||||
while true
|
|
||||||
line = s.gets # Read lines from the socket
|
|
||||||
puts ">> " + line.chop # And print with platform line terminator
|
|
||||||
s.print(gets.chop)
|
|
||||||
end
|
|
||||||
s.close # Close the socket when done
|
|
Binary file not shown.
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
erlc -o . ggs_db.erl
|
|
||||||
erlc -o . ggs_db_test.erl
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
./build_db
|
|
||||||
./test_db
|
|
|
@ -1,6 +0,0 @@
|
||||||
%% gamedb.hrl
|
|
||||||
|
|
||||||
-record(player, {id, name}).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
1. From terminal: erl -mnesia dir '"/home/user/dir/to/GGS/GameDB.Player"'
|
|
||||||
2. mnesia:create_schema([node()]).
|
|
||||||
3. mnesia:start().
|
|
||||||
4. c(gamedb).
|
|
||||||
5. gamedb:init().
|
|
||||||
6. mnesia:info().
|
|
||||||
7. gamedb:test_player().
|
|
||||||
|
|
||||||
Last output should be:
|
|
||||||
Player name: Tux
|
|
||||||
{atomic,ok}
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
erl -eval 'eunit:test(ggs_db_test), q().'
|
|
3
start
3
start
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
erl -sname ggs -mnesia -boot start_sasl -pa erlang_js/ebin/ -pa ebin -pa src -s start_ggs
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
erl -boot start_sasl -pa ebin_test -pa erlang_js/ebin/ -pa ebin -pa src -eval 'ggs_coordinator_test:test().'
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
erl -boot start_sasl -pa ebin_test -pa erlang_js/ebin/ -pa erlv8/ebin -pa ebin -pa src
|
|
Reference in a new issue