Setup environment

  1. Follow the suite documentation to setup suitedocker:

  2. Have all repos of ME services in the same level as me-toolsmith so ../push-notification-service is working (can be improved later)

  3. Always run the docker-compose commands in the root of ems-me-toolsmith

  4. Take the .env.example.compose and fill in the missing parts from your local suitedocker emsadmin (all marked with <text>)

  5. If you are not using the .env.example.compose take care of the service names it has to match the name in docker-compose.yml

  6. Once all .env files are ready, build the images

    • set the NPM_TOKEN accroding to the Push Readme

    • make build (gonna take a while for the first time)

  7. Init the services

    • make up - starts everything

    • make create-db - create the postgres databases

    • make create-vhosts - create rabbitmq vhosts

    • make patch-db SERVICE=push - runs the migrations for push

    • make restart - to make sure all is good

  8. Set suite integration

    • Escher keypool - should be there already because the key was needed in the .env file

    • Configuration integration-ID: push-notification - copy from suitestage or demo

    • make sure hostnames in 'Integration URLs' are localhost

      • {"sso_login":"http://localhost:9100/login", "iframe":"http://localhost:9100", "searchUrl": "http://localhost:9100/api/kommander/search?query=%query%","installUrl":"http://localhost:9100/api/configurations/install","adminStatisticsUrl":"http://localhost:9100/login?redirect_to=%2F%23%2Fadmin%2Fstatistics"}