Skip to content

Commit

Permalink
Start of refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
pmonks committed May 17, 2014
1 parent 437daf3 commit 3a76e26
Show file tree
Hide file tree
Showing 49 changed files with 695 additions and 883 deletions.
19 changes: 13 additions & 6 deletions .gitignore
@@ -1,6 +1,13 @@
go.sh
startNRepl.sh
reply.sh
*.iml
.idea
target
pom.xml
pom.xml.asc
*jar
/lib/
/classes/
/targets/
/target/
.lein-deps-sum
.lein-repl-history
.lein-failures
.nrepl-port
.shell_history
*.log
3 changes: 3 additions & 0 deletions lambdalf-amp/.gitignore
@@ -0,0 +1,3 @@
target
*.iml
.idea
35 changes: 35 additions & 0 deletions lambdalf-amp/README.md
@@ -0,0 +1,35 @@
lambdalf -- Clojure magic for Alfresco
======================================

Lambdalf is a convenient Clojure adapter around Alfresco Repository APIs.
It is implemented as an Alfresco Module Package, grounding on top of
the excellent [Maven AMP Archetype](code.google.com/p/maven-alfresco-archetypes/).

Usage
=====================

You will need [`lambdalf-lib`](https://github.com/skuro/lambdalf/tree/master/lambdalf-lib) already installed in your
local maven repository.

Run a local Jetty server with a deployed Alfresco already provided with lambdalf installed:

MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=256m" mvn clean integration-test -Pwebapp

This will start up a Clojure spiced version of an Alfresco repository you can connect to at:

http://localhost:9090/lambdalf-webapp

You can then start a [swank server](https://github.com/technomancy/swank-clojure) by calling the appropriate
[web script](https://github.com/skuro/lambdalf/tree/master/lambdalf/src/main/resources/alfresco/templates/webscripts/clj):

$ curl -X POST -u admin:admin http://localhost:9090/lambdalf-webapp/service/clojure/swank

Currently the web script doesn't allow for choosing a port different from the default one: 4005.
To stop the server, you can issue a similar HTTP call:

$ curl -X DELETE -u admin:admin http://localhost:9090/lambdalf-webapp/service/clojure/swank

Sample code
=====================

Sample usages are provided in [lambdalf-samples](https://github.com/skuro/lambdalf-samples)
File renamed without changes.

0 comments on commit 3a76e26

Please sign in to comment.