Skip to content

Commit

Permalink
Merge pull request #5 from SEPIA-Framework/dev
Browse files Browse the repository at this point in the history
added info about Code-UI of Control-HUB; emphasized JDK req.
  • Loading branch information
fquirin authored Sep 17, 2019
2 parents 4f51103 + 9af6b50 commit 46f934a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ Ask the admin to add the 'developer' role to the account (see [Wiki](https://git

### Service upload interface
The SEPIA-Assist server has an endpoint for service uploads, e.g.: http://localhost:20721/upload-service
To use the interface make sure the server has SDK support enabled (via admin-tools or enable_sdk=true in assist.*.properties).
To use the interface make sure the server has SDK support enabled (via [Control-HUB](https://github.com/SEPIA-Framework/sepia-admin-tools/tree/master/admin-web-tools) or enable_sdk=true in assist.*.properties).

### Service upload via Control-HUB
You can use the 'Code-UI' page of the Control-HUB to edit and upload services created with the SDK. See the [SEPIA extensions](https://github.com/SEPIA-Framework/sepia-extensions) repository for more info.

### Quickstart
- Import the maven project into the IDE of your choice (tested with Eclipse).
- Make sure you've installed a JAVA JDK on the S.E.P.I.A. server (e.g.: sudo apt-get install -y openjdk-9-jdk-headless). This is required to compile new classes during runtime.
- Create a package for your developer account ID under 'net.b07z.sepia.sdk.services' (e.g. "uid1010" -> net.b07z.sepia.sdk.services.uid1010).
- Open 'Settings/sdk.properties' and put in your credentials (ID + password of your SEPIA account with 'developer' role) and the endpoint URL of your SEPIA-Assist server.
- Modify and run the various '[.main.Test***.java](https://github.com/SEPIA-Framework/sepia-sdk-java/tree/dev/src/main/java/net/b07z/sepia/sdk/main)' classes to test the upload of one of the demo services. Check the result for errors. Make sure you installed a jdk on the S.E.P.I.A. server (e.g.: sudo apt install openjdk-8-jdk)
- Modify and run the various '[.main.Test***.java](https://github.com/SEPIA-Framework/sepia-sdk-java/tree/dev/src/main/java/net/b07z/sepia/sdk/main)' classes to test the upload of one of the demo services. Check the result for errors.
- Check-out the examples under '[.services.uid1007.*](https://github.com/SEPIA-Framework/sepia-sdk-java/tree/dev/src/main/java/net/b07z/sepia/sdk/services/uid1007)' to get an idea of how a SDK custom service works (until a real documentation is ready ^^).
- Open your SEPIA client, login with the same user ID you used for development and make a real test of your custom service.

Expand Down

0 comments on commit 46f934a

Please sign in to comment.