Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Your friend say funny things. This becomes your friend facts. We call it Clacts!
Clojure
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
datomic
src/clacts
.gitignore
README.md
project.clj

README.md

clact

Your friends say funny things. This becomes your friend facts. We call it Clacts!

This repo supports this blog post.

Usage

Clone it. Uberja it. And then run the jar: java -jar ${jar-versio-name}.jar

   Switches               Default         Desc                                      
   --------               -------         ----                                     
   -p, --port             10200           Port to listen to connections             
   -s, --storage          sqlite          Type of storage. Use sqlite or datomic    
   -t, --transactor       localhost:4334  Transactor server:port. For datomic only. 
   -h, --no-help, --help  false           Show this help 

Then use telnet localhost 1022 for example to start interacting with it.

Use the following commands:

  • PUT <author> <via> <fact>: Insert a new fact
  • LSA <autor>: Find fact by a given author
  • LSA *: Find all facts regardless the author (Works only for SQLite storage)
  • LSC <content>: Find facts by their content. (Works only for datomic storage)
Something went wrong with that request. Please try again.