Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Feb 7, 2013
0 parents commit 67d7544
Show file tree
Hide file tree
Showing 79 changed files with 4,899 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
target/
.classpath
.settings/
.project
.metadata
ActiveMQ/
FedoraRepository/
indexes/
ObjectStore/
8 changes: 8 additions & 0 deletions .travis.yml
@@ -0,0 +1,8 @@
language: java
jdk:
- openjdk6
- oraclejdk7
branches:
only:
- master

1 change: 1 addition & 0 deletions README
@@ -0,0 +1 @@
fcrepo ModeShape prototype parent project
43 changes: 43 additions & 0 deletions kernel/README.md
@@ -0,0 +1,43 @@
The amazing rebirth of Fedora Commons in the JCR world.

[![Build
Status](https://travis-ci.org/futures/ff-modeshape-prototype.png?branch=master)](undefined)

```bash
$ mvn clean jetty:run
$ curl "http://localhost:8080/rest/describe"
```
to create an object, try:

```
$ curl "http://localhost:8080/rest/objects/myobject" -X POST
```
and to retrieve it:

```
$ curl "http://localhost:8080/rest/objects/myobject" -H "Accept: text/xml"
```

To import FOXML, try:
```
$ curl "http://localhost:8080/rest/foxml/myobject" --data-ascii @myfoxmlfile.xml -H "Content-type: text/xml"
```
and you should see an object appear at:
```
$ curl "http://localhost:8080/rest/objects/myobject"
```

Before creating fedora-like namespaced nodes, you need to register a namespace:

```bash
curl "http://localhost:8080/rest/namespaces/asdf" -X POST
```

To run clustered instances on a single machine, start by making as many copies of the project as you want instances. Then, if each project directory, launch the prototype with a different port, a la:
```
$ mvn -Djetty.port=9999 clean jetty:run
$ cd ../other-copy
$ mvn -Djetty.port=9998 clean jetty:run
```
and the instances should find each other via JGroups using TCP.

0 comments on commit 67d7544

Please sign in to comment.