Skip to content

Commit

Permalink
Update readme files
Browse files Browse the repository at this point in the history
  • Loading branch information
dries committed Nov 6, 2019
1 parent 5f90430 commit 3515225
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 42 deletions.
67 changes: 65 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,70 @@

The SLIMS API allows you to write SLIMSGATE plugins and SLIMS Vaadin plugins.

Visit [templates](templates/) to look for empty example plugins.
## Prerequisites.

As a prerequisite you will need to have an account on Genohm's build infrastructure.
Please contact your SLIMS project lead to get access.
They will send you a gradle.properties file looking like this:

```
slimsApiArtifactoryUser=<your user on genohms artifactory>
slimsApiArtifactoryPassword=<your password on genohms artifactory>
slimsApiArtifactoryRepository=<genohms artifact>
slimsRestApiUser=<a user on your installed slims>
slimsRestApiPassword=<the password for that user>
slimsRestApiEndpoint=<the url to the installed slimsrest>
```

You will need to place this file in

```
~/.gradle/gradle.properties
```

## Using gradle

### Setup

Once your account is setup, download this repository and navigate to the base folder of the repository with the command line interface you use.
We suggest using GIT Bash for Windows.
Build the projects for your favorite IDE (Eclipse or IntelliJ) with:

The examples here can be used to get some insight into how you could write your own plugin. To build your own plugins you will need access to our api classes. Please contact your SLIMS project lead to get access.
```
# Eclipse
./gradlew eclipse
# IntelliJ
./gradlew idea
```

Now the plugin projects can be imported in your IDE.
Repeat this command for every new plugin project or dependency change.
Newly defined plugin projects should also be included in [settings.gradle](settings.gradle).

### Usage

Next try to create a dummy project.
We suggest starting with slimsgate-template.
You can test out if you can build your individual plugin with:

```
./gradlew templates:slimsgate-template:fatjar
```

Alternatively you can also build all your plugins at once with:

```
./gradlew fatjar
```

You can upload and deploy your plugin with:

```
./gradlew templates:slimsgate-template:uploadToSlims
```

## Example templates

Visit [templates](templates/) to look for empty example plugins.
41 changes: 1 addition & 40 deletions templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,4 @@ There are some empty template projects listed here. They provide you with an emp

* dto-template: An empty DTO project. Can be used to put DTO objects in to transfer in between SLIMS and SLIMS GATE

* library-template: An empty library project. Can be used to put common code into.

## Prerequisites.

As a prerequisite you will need to have an account on Genohm's build infrastructure. They will send you a gradle.properties file looking like this.

```
slimsApiArtifactoryUser=<your user on genohms artifactory>
slimsApiArtifactoryPassword=<your password on genohms artifactory>
slimsApiArtifactoryRepository=<genohms artifact>
slimsRestApiUser=<a user on your installed slims>
slimsRestApiPassword=<the password for that user>
slimsRestApiEndpoint=<the url to the installed slimsrest>
```

You will need to place this file in

```
~/.gradle/gradle.properties
```

## Using gradle

Once you are setup, download this repository and try to create a dummy project. We suggest starting with slimsgate-template.

Navigate to the base folder of the repository with the command line interface you use. We suggest using GIT Bash for Windows. You can test out if you can build your plugin with

```
./gradlew templates:slimsgate-template:fatjar
```

You can upload and deploy your plugin with

```
./gradlew templates:slimsgate-template:uploadToSlims
```

Make sure that new defined projects are included in [settings.gradle](../settings.gradle).
* library-template: An empty library project. Can be used to put common code into.

0 comments on commit 3515225

Please sign in to comment.