__normalize_header to cleanup names
[MojoFacets.git] / README
diff --git a/README b/README
index f676698..f0f10f3 100644 (file)
--- a/README
+++ b/README
@@ -1,9 +1,25 @@
 Mojo Facets - server side facet browsing using Mojolicious and jQuery UI
 
 
-Put JSON file from Simile Exhibit project in data/
+Data sources:
+
+Put JSON file from Simile Exhibit project in data/ with extension .js or .json
+
+Alternative format is pipe (|) separated text files with extension .txt
+First column is always header with field names
+Multi-line values should be wrapped in ^multi-line-text^
+
 
 Start with:
 
-LANG=hr_HR.utf8 ./script/mojo_facets daemon --reload
+  LANG=hr_HR.utf8 ./script/mojo_facets daemon --reload
+
+
+Data replication:
+
+  # master
+  ./script/mojo_facets daemon --listen 'http://*:4444' --reload
+
+  # slave
+  MASTER=http://localhost:4444 ./script/mojo_facets daemon --reload