Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Set up the back-end database

First, let's set up a back-end database for our hospital service. We will create a database named DATA_SERV_QSG in the <EI_HOME>/samples/data-services/database directory for this purposehealthcare service. Follow the steps below to create the database.

  1. Download the dataServiceSample.zip file and extract it to a location on your computer. Let's refer the extracted dataServiceSample directory as <QSG_HOME>, which contains the following:
    • A DB script to create the back-end database (DATA_SERV_QSG) with the channelling information of the hospital service.
    • A pre-packaged data service (DOCTORS_DataService.dbs file), which can expose the back-end database as a service.
  2. Open a terminal, navigate to the <QSG_HOME> directory and execute the following command:

    Code Block
    ant -Ddshome=PATH_TO_EI_HOME

The The DATA_SERV_QSG database is now created in the <EI_HOME>/samples/data-services/database directory with information of all available doctors in the hospital servicehealthcare service.

Expose the database as a data service

...