General Guidelines https://trello.com/c/IX6n2xmz/73-general-guidelines https://trello.com/c/DHKrU6mA/81-data-sync-general-guidelines Prerequisites PostgreSQL database deployed to your project 1. In catalog, search for postgresql and select the first result "PostgreSQL" 2. Fill in the parameters:
- Database Service Name: postgresql
- PostgreSQL Connection Username: testuser
- PostgreSQL Connection Password: Password1
- PostgreSQL Database Name: tasks
3. Finish the steps in wizard and wait until the instance of DB server is running
Steps 1. Follow the steps in documentation for how to provision Mobile Developer Console APB and Data Sync APB into your OpenShift project 2. Use these parameters to provision Data Sync (leave not mentioned params as they are):
- Sync Application Name: test-app-1
- Sync Application Docker image: docker.io/aerogear/voyager-server-example-task
- Sync Application Docker image version: based on the version of ionic-showcase app, which is being tested. See released versions here
- Sync App Port: 4000
- Database Server Hostname: postgresql
- Database Server Port: 5432
- Database Server Username: testuser
- Database Server Password: Password1
- Database name: tasks
3. Verify the Data Sync APB is provisioned successfully in your project 4. Bind the Data Sync in Mobile Developer Console 5. Go to Configuration tab and verify mobile-services.json file has been updated with sync configuration (graphqlURL, websocketURL) 6. Verify accessibility of graphql endpoint 7. Unbind the application 8. Verify that sync-app configuration was removed from "mobile-services.json" in Configuration tab 9. Verify that "sync-app-*" secret was removed from the list of secrets (in OpenShift project) 10. Trigger deprovision (OpenShift project -> Provisioned services -> Delete) 11. Once deprovision is finished, verify that Sync App service is no longer present in MDC 12. Verify that all resources of sync-app were deleted from your OpenShift project (DC, service, route,..) Trello link
|