AeroGear Data Sync Showcase Application
Example application using AeroGear Mobile Services.
Integration with AeroGear Mobile Services
Ionic 4 Angular frontend backed by Cordova
A Node.js GraphQL Server that implements a sample
The mobile application uses Voyager Client to provide additional offline capabilities on top of Apollo GraphQL.
The GraphQL server uses Voyager Server to provide GraphQL capabilities along with security, monitoring and tools to simplify GraphQL API development.
Node.js 6.x or above to run server
(optional) access to a running OpenShift instance
Running the server
Start the PostgreSQL container
cd ./server docker-compose up -d
Start the server
npm install npm run startNote
If Keycloak integration is enabled on the server, and the Keycloak server is running using self-signed certificate, please make sure set this environment variable before running the server:
Running the Server on OpenShift (optional)
Log into your OpenShift instance with the
Deploy the Server with PostgreSQL
oc new-app -f server/openshift-template.yml
To deprovision all of the resources from the template, run
oc delete all -l app=ionic-showcase-server \ && oc delete secret -l app=ionic-showcase-server \ && oc delete pvc -l app=ionic-showcase-server
Running the Client
Install Ionic 4
npm install -g ionic@4
Browse Ionic 4 app
npm run start
Alternatively - Run as a mobile application in the Android emulator.
npm run ionic:android
To connect to the local GraphQL server, when the app is running in the Android emulator,
change [Client URL](https://github.com/aerogear/ionic-showcase/blob/master/src/app/services/sync/voyager.service.ts#L76) from
To integrate with OpenShift mobile config please paste your configuration into mobile-services.js file