Skip to main content

Deploy & Run

Please refer to APIs Reference to view common aspects and on 'connecting & using databases' details.

Deployment

  1. Open maven project in IntelliJ IDEA 2021.x Community Edition.

    Locate spring-java folder which has maven project emapi: <Downloads>\EmGenDir_JohnDoe_WS_50639\WS_50639\backend\spring-java\emapi.

    INFO: Old Locations were: <Downloads>\EmGenDir_JohnDoe_WS_50639\WS_50639\backend\spring-java\EmDbRestApp50639\spring. <Downloads>\EmGenDir_JohnDoe_WS_50639\WS_50639\TableServices\EmDbRestApp50639\spring.

  2. Open application.properties, Uncomment/specify spring.datasource.* properties for your target database. Location for GraphQL project is:

  • <Downloads>\...\spring-java\emapi\app\dbrest\src\main\resources\application.properties
  1. Execute Maven actions
  • clean
  • package
  • jar is generated in /target
  • emapi\app\dbrest\target\dbrest-1.0-SNAPSHOT.jar
  1. Right-Click on dbrest*.jar and Select -> Run.

  2. Run Unit tests:

  • Execute Maven action: package or test
  1. Run Integration tests:
  • Execute Maven action: verify

Swagger REST API Explorer

Use Swagger-UI API Explorer, which is full-featured REST UI client, which lets you view and execute any REST endpoint.

http://127.0.0.1:9080/swagger-ui.html