Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 datomic
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 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.