DB Sync GAS/GIP setup test
After doing all GAS/GIP setup tasks, let's test if the DB Sync service is responding.
The DB Sync service is automatically waiting for DB Sync client app requests, after setting up the GAS/GIP for DB Sync. No additional startup task is required: The DB Sync server program runs as GWS program behind the GAS.
The instructions provided in this topic are for a command line terminal. Alternatively, you can use Genero Studio with the library.4pw GST project provided in DBSYNCDIR/demo/books.
-
Open a new terminal.
-
Go to the DBSYNCDIR/demo/books/version_1 directory.
-
Set the DB Sync environment as described in the books demo env setup.
-
Get the database schema file for the books demo: library_schema.json
-
Edit the DB Sync client app configuration file dbsync_source_gas.json as described int the section Client app configuration file, but with GAS/GIP settings.
-
Make sure the demo program files are compiled:
fglcomp -M main.4gl fglform -M f_book.per
-
Start an instance of the demo client app, with the client configuration file:
fglrun main.42m dbsync_source_gas.json
-
Enter the login and password for a GIP user defined in the GAS/GIP configuration task Create DB Sync users.
The application should start and show a table with book data rows.