@aligent/serverless-magento
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.4 • Public • Published

    Serverless Magento Plugin

    This serverless plugin provides scaffolding around a Magento-connected micro service. It's main responsibility is registering the service with a Magento instance and injecting that authorization context into each function in the service.

    The registration happens as part of the serverless deploy. If for any reason the registration is not able to take place, the deployment will fail (before any changeset has been deployed).

    YAML Definition

    Add the following (with correct values) to your serverless.yml file:

    custom:
      magento:
        baseUrl: 'http://localhost'
        name: 'Test Service'
        adminInterfaces:
          - name: 'Configuration'
            app_url: 'https://example.com'
    

    Variables

    Variable Usage
    baseUrl The base URL - including scheme - of the Magento instance.
    name The friendly name of the service.
    adminInterfaces An array of {name, app_url} representing the admin interfaces to be exposed by Magento

    Keywords

    none

    Install

    npm i @aligent/serverless-magento

    DownloadsWeekly Downloads

    5

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    76.4 kB

    Total Files

    11

    Last publish

    Collaborators

    • aligent-bot
    • aligent-danielvanderploeg
    • luke-denton-aligent
    • jarrod.swift
    • john.smith.aligent