Skip to content

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

Notifications You must be signed in to change notification settings

paulosuzart/clact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published