magento-research / venia-pwa-concept

(Defunct) Moved to https://github.com/magento-research/pwa-studio
Open Software License 3.0
34 stars 19 forks source link

Implement support module with WebAPI endpoint for development #41

Closed ericerway closed 6 years ago

ericerway commented 6 years ago

As a developer, I want to quickly and easily set up a PWA development environment connected to a Magento 2 instance.

Enable this quick setup with a Web API endpoint for communication between the Magento 2 backend configuration and the PWA developer tools.

AC

  1. Web API endpoint for checking, and if necessary modifying, store configuration to the following requirements:

    • Magento is installed and responding
    • Magento version is within supported range specified in theme manifest
    • Storefront and admin are both HTTPS-only, with redirect-to-HTTPS enabled
    • TLS certificate is signed with SAN extensions
    • Static resource signing is disabled
    • SEO redirects are enabled
    • Template symlinking is allowed
    • Theme under development is installed and activated on the default store
  2. Web API endpoint (or additional response data from the endpoint defined in (1) above) for providing the following values:

    • Configured base URLs
    • Static asset path for the active theme, variant, and locale
    • File system path to the folder or symbolic link for theme assets
    • TLS certificate and certificate authority in PEM format
    • Buildpack connector which consumes API endpoint to provision and confirm store configuration
    • Stretch: Layout updates to disable "Layout XML Update" fields in admin when PWA theme is active
    • Test coverage and documentation (as appropriate)
DrewML commented 6 years ago

@zetlen This could be a good candidate for contribution, but it's missing too much info at the moment. Do you have detailed AC for what you need from this endpoint?

zetlen commented 6 years ago

That's something @paliarush asked me for a while back, and I owe it. I'll write that up ASAP.

DrewML commented 6 years ago

Removing the Help Wanted label until actionable AC has been specified.

DrewML commented 6 years ago

@ericerway @zetlen this is a pretty large ticket for an external contribution. Can we chop this up into separate stories? Seems like most of the listed items could be separate tickets.

zetlen commented 6 years ago

Definitely. The tickets would be:

zetlen commented 6 years ago

Please add or break down anything you think is extra.

miguelbalparda commented 6 years ago

Magento is installed and responding Magento version is within supported range specified in theme manifest

anystore.com/magento_version i.e https://82503e2667.nxcli.net/magento_version might help here.

PWAStudioBot commented 6 years ago

This issue was moved to magento-research/pwa-studio#29