Shopifex (Shopifex v2.3.0) View Source
A simple boilerplate package for creating Shopify embedded apps with the Elixir Phoenix framework. https://hexdocs.pm/shopifex
Installation
The package can be installed
by adding shopifex to your list of dependencies in mix.exs:
def deps do
[
{:shopifex, "~> 2.1"}
]
endQuickstart
Run the install script
This will install all of the supported Shopifex features.
mix shopifex.installFollow the output config.ex and router.ex instructions from the install script.
Run migrations
mix ecto.migrateUpdate Shopify app details
Replace tunnel-url with your own where applicable.
- Set "App URL" to
https://my-app.ngrok.io/auth - Add
https://my-app.ngrok.io/auth/install&https://my-app.ngrok.io/auth/updateto your app's "Allowed redirection URL(s)" - Add your Shopify app's API key and API secret key to
config :shopifex, api_key: "your-api-key", secret: "your-api-secret"