forked from skuro/lambdalf
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
695 additions
and
883 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
target | ||
*.iml | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
Oops, something went wrong.