Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

minimally fix readme

  • Loading branch information...
commit d72530ad0f85402258861673c3146062f6a2327f 1 parent 75afa5d
@freels freels authored
Showing with 21 additions and 11 deletions.
  1. +21 −8 README
  2. +0 −3  TODO
View
29 README
@@ -1,18 +1,31 @@
To build project:
-ant dist -DDB_USERNAME=fixme -DDB_PASSWORD=fixmetoo
+ % env DB_USERNAME=<user> DB_PASSWORD=<pass> sbt package-dist
To run tests:
-mysql> CREATE DATABASE rowz_nameserver;
+ % env DB_USERNAME=<user> DB_PASSWORD=<pass> sbt test
-% ant test -DDB_USERNAME=fixme -DDB_PASSWORD=fixmetoo
+To run the development server:
-To run a simple development server:
+ % ./bin/rowz <db user>
-% ./bin/rowz
+To setup a simple forwarding table (while dev server is running):
-To sample the networking service:
+ % gem install gizzmo
+ % ./bin/setup
-% cd src/scripts
-% ./gzr.rb
+Play with a client:
+
+ % sbt console
+
+ scala> import com.twitter.rowz.RowzClient
+
+ scala> val c = new RowzClient("localhost")
+ c: com.twitter.rowz.RowzClient = com.twitter.rowz.RowzClient@5c08e00d
+
+ scala> c.create("a row")
+ res0: Long = 5335423358337025
+
+ scala> c.read(res0)
+ res1: com.twitter.rowz.thrift.Row = Row(id:5335423358337025, name:a row, created_at:1302593593679, updated_at:1302593593679)
View
3  TODO
@@ -1,3 +0,0 @@
-create database rowz_nameserver;
-./gzr.rb rebuild-schema --port 7920 --hosts localhost
-./gzr.rb show --port 7920 --hosts localhost

0 comments on commit d72530a

Please sign in to comment.
Something went wrong with that request. Please try again.