Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Plugin Dashboard Repo - Local Dev Setup & Research:

  1. Setup environment to develop - environment specifics needed for the repo to work.

    1. RabbitMQ : Add settings.

      1. Docker-Compose file:

        Code Block
          rabbitmq:
            image: rabbitmq:3.8
            container_name: plugindashboard_rabbitmq
            ports:
              - "5672:5672"
              - "15672:15672"
            healthcheck:
              test: ["CMD", "rabbitmqctl", "status"]
              interval: 30s
            restart: unless-stopped
            volumes:
              - ../shared-data/rabbitmq:/var/lib/rabbitmq
    2. Docker-Compose and Parameters file need to have the App’s Client Id & Client Secret added.
      Both are Hex value strings.

      1. Docker-Compose file:

        Code Block
              NETCOMM_API_KEY: 2de2b028c0c30db8de8e44c5bacfd5ed 
              NETCOMM_API_SECRET: c3c5932fa8aeb97b80eddf132bc11abf
      2. Parameters file:

        Code Block
            netcomm_api_key: '%env(NETCOMM_API_KEY)%'
            netcomm_api_secret: '%env(NETCOMM_API_SECRET)%'
    3. So based upon our tech stack it seems like we actually just use the PHP library / dependancy to intergrate the app with Shopify.

      1. Composerr.json → "phpclassic/php-shopify": "~1.0",
        https://github.com/phpclassic/php-shopify.git