...
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.
- Download the
dataServiceSample.zip
file and extract it to a location on your computer. Let's refer the extracteddataServiceSample
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.
- A DB script to create the back-end database (
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
...