|
1 | 1 | Dicoogle Plugin - Sample |
2 | | ------------------------ |
| 2 | +======================== |
3 | 3 |
|
| 4 | +This is a Dicoogle plugin to serve as an example. Those that are interested in developing a new |
| 5 | +plugin may use this one as a template. |
4 | 6 |
|
5 | | -Where should I start? |
6 | | ------------------------ |
| 7 | +Getting Started |
| 8 | +--------------- |
7 | 9 |
|
| 10 | +### Installing and running Dicoogle |
8 | 11 |
|
9 | | -Run Dicoogle |
10 | | ---------------- |
11 | 12 | 1. Go to http://www.dicoogle.com/?page_id=67 |
12 | | -2. Download the version of Dicoogle |
13 | | -3. Run the Dicoogle with: sh Dicoogle.sh or Dicoogle.bat. |
14 | | -4. Is it running? You're ok! |
| 13 | +2. Download version 2 (or later) of Dicoogle |
| 14 | +3. Extract your contents to its own directory (e.g. "~/dicoogle" or "C:\dicoogle", depending on the platform). |
| 15 | +4. Run Dicoogle with: sh Dicoogle.sh (OSX / Linux) or Dicoogle.bat (Windows). |
| 16 | +5. You should see your web browser opening the Dicoogle user interface. Is it running? You're ok! |
| 17 | + |
| 18 | +### Downloading and building the plugin |
| 19 | + |
| 20 | +Maven is required in order to build the project. An IDE with Maven support such as Netbeans may also help. |
| 21 | + |
| 22 | +1. Clone the git repository at https://github.com/bioinformatics-ua/dicooglePluginSample.git |
15 | 23 |
|
| 24 | +2. Go to the project's base directory in a command line and run `mvn install`. Alternatively, open |
| 25 | + the Maven project of the plugin with your IDE, then force it to build your project. |
16 | 26 |
|
17 | | -Use your own plugin |
18 | | --------------------- |
| 27 | +3. If the building task is successful, you will have a new jar with dependencies in the target |
| 28 | + folder (target/dicoogle-plugin-sample-2.0-jar-with-dependencies.jar). |
19 | 29 |
|
20 | | -You should use Netbeans to compile the project and maven is necessary. Then, the first class to look is RSIPluginSet. It is the place where the magic starts. |
| 30 | +### Developing your own plugin based on this sample |
21 | 31 |
|
22 | | -You can compile and run in the command line: |
| 32 | +The first class to look into is RSIPluginSet. It is the main entry point for everything else. |
| 33 | +Once modified to suit your needs, build the plugin again and re-deploy it to Dicoogle (see below). |
23 | 34 |
|
24 | | -1. https://github.com/bioinformatics-ua/dicooglePluginSample.git |
25 | | -2. cd dicooglePluginSample |
26 | | -3. ```$ mvn install``` |
27 | | -4. copy target/dicooglePluginRestSample-1.0-SNAPSHOT-jar-with-dependencies.jar to the folder Plugins inside Dicoogle project. |
28 | | -5. Run Dicoogle with: sh Dicoogle.sh or Dicoogle.bat. |
| 35 | +### Using your plugin |
29 | 36 |
|
| 37 | +1. Copy your plugin's package with dependencies (target/dicoogle-plugin-sample-2.0-jar-with-dependencies.jar) |
| 38 | + to the "Plugins" folder inside the root folder of Dicoogle. |
30 | 39 |
|
| 40 | +2. Run Dicoogle. The plugin will be automatically included. |
31 | 41 |
|
32 | | -Available plugins |
33 | | ------------------------ |
34 | | -- RSIIndex |
35 | | -- RSIStorage |
36 | | -- RSIQuery |
37 | | -- RSIWebService |
38 | | -- RSIJettyPlugin |
39 | | -- Sample HTML5 content and consuming web service: helps to build a web app |
| 42 | +Available content |
| 43 | +----------------- |
| 44 | + |
| 45 | +- _RSIIndexer_ : a sample indexer, only logs the DIM contents of files |
| 46 | +- _RSIStorage_ : a sample storage service, keeps files in memory buffers |
| 47 | +- _RSIQuery_ : a sample query provider, returns random data on request |
| 48 | +- _RSIJettyPlugin_ : a sample plugin for providing web services, holds `RSIWebService` |
| 49 | +- _RSIWebService_ : a sample web service in the form of a servlet, serves a web page and a few other services |
| 50 | +- _RSIRestPlugin_ : a sample Restlet server resource, provides dummy data |
| 51 | +- Sample HTML5 content and consuming web service: helps you to build a web app |
40 | 52 |
|
41 | 53 | Web service plugin sample and Web App: |
42 | | --------------------------- |
| 54 | +-------------------------------------- |
43 | 55 |
|
44 | | -To test the webservice plugin, you should go to Services and Enable Dicoogle Web Services. |
| 56 | +To test the webservice plugin, you may open your browser and navigate to these URLs: |
45 | 57 |
|
46 | | -- http://127.0.0.1:8080/sample/hello?uid=1111 |
47 | | -- http://127.0.0.1:8080/dashboardSample |
48 | | -- http://127.0.0.1:6060/rsitest (restlet) |
| 58 | +- `http://localhost:8080/sample/hello?uid=1111` |
| 59 | +- `http://localhost:8080/dashboardSample` |
| 60 | +- `http://localhost:8080/ext/rsi-test` (restlet) |
49 | 61 |
|
| 62 | +You may also use the built-in Dicoogle services for testing other plugins: |
50 | 63 |
|
| 64 | +- GET `http://localhost:8080/search?query=test&provider=RSI` to test the query provider |
| 65 | +- POST `http://localhost:8080/management/tasks/index?plugin=RSI&uri=<file:/path/to/DICOM/dir>` to test the indexer |
51 | 66 |
|
52 | 67 | Platforms |
53 | | ----------------- |
| 68 | +---------- |
| 69 | + |
| 70 | +Dicoogle has been tested in: |
54 | 71 |
|
55 | 72 | - Windows |
56 | 73 | - Linux |
57 | 74 | - Mac OS X |
58 | 75 |
|
59 | | -More information: http://bioinformatics-ua.github.io/dicoogle/ |
60 | | - |
61 | | - |
| 76 | +For more information, please visit http://www.dicoogle.com |
62 | 77 |
|
0 commit comments