mix polar_express.install (polar_express v0.1.5)

Copy Markdown View Source

Installs and configures polar_express in a Phoenix application.

$ mix polar_express.install

This installer:

  1. Adds Polar API key config to config/dev.exs (sandbox environment)
  2. Adds runtime config with env vars to config/runtime.exs (production)
  3. Adds PolarExpress.WebhookPlug to the Phoenix endpoint (before Plug.Parsers)
  4. Scaffolds a PolarWebhookController with event handler skeleton for Polar events
  5. Adds the webhook route to the router
  6. Shows next steps and configuration guidance