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.

Tip:

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.

To check that the DB Sync service is responding:
  1. Open a new terminal.

  2. Go to the DBSYNCDIR/demo/books/version_1 directory.

  3. Set the DB Sync environment as described in the books demo env setup.

  4. Get the database schema file for the books demo: library_schema.json

  5. 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.

  6. Make sure the demo program files are compiled:
    fglcomp -M main.4gl
    fglform -M f_book.per
  7. Start an instance of the demo client app, with the client configuration file:
    fglrun main.42m dbsync_source_gas.json
  8. 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.