Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 2.03 KB

File metadata and controls

80 lines (51 loc) · 2.03 KB

NubeIO IoT Development

Run-Local

Prerequisites

  • Java 8

  • Gradle

  • Create nexus.secret.properties with content:

    nexusSnapshotUrl=http://<your-nexus-server>/repository/maven-snapshots/
    nexusReleaseURL=http://<your-nexus-server>/repository/maven-releases/
    nexusUsername=<your-nexus-user>
    nexusPassword=<your-nexus-password>

Build

  • Build local: compile and build to jar file, then push artifact to local maven repository.

    gradle clean build uberJar
  • Publish artifacts to Nexus server:

    gradle publish

Run Demo

  • Copy theses artifacts to demo folder: (will be removed when I standardize build and bundle script)

    • cp -rf dashboard/connector/edge/build/libs/nube-dashboard-connector-edge-1.0.0-SNAPSHOT-fat.jar demo/bios-connector.jar
    • cp -rf edge/bios/build/libs/nube-edge-bios-1.0.0-SNAPSHOT-fat.jar demo/bios.jar
    • cp -rf dashboard/server/build/libs/nube-dashboard-server-1.0.0-SNAPSHOT-fat.jar demo/dashboard.jar
  • Start services (replace ${your-ip})

    java -Dlogback.configurationFile=logback-bios-connector.xml -jar bios-connector.jar -conf bios-connector.json
    
    java -Dlogback.configurationFile=logback-bios.xml -jar bios.jar -conf bios.json
    
    java -Dlogback.configurationFile=logback-dashboard.xml -jar dashboard.jar -conf dashboard.json

Interact REST API

Will be part of Swagger UI soon. Try Postman version first.

Development

Start application in IDE for debug purpose

Eclipse

  • Install BuildShip

  • Run:

     gradle eclipse
  • Import Gradle project into Eclipse

  • Use launcher script in same directory name to start application. The configuration is in demo folder

    • BIOS.launch: For edge > bios
    • BIOS-Connector.launch: For dashboard > connector > edge
    • Dashboard.launch: For dashboard > server

IntelliJ

TBD

Deployment

TBD