Skip to main content

Avada App dev flow

Prerequisites

Basic Avada App setup

Before setting up this new Avada Dev Flow, you should know how to basically create and setup an Avada Shopify app already, if not see these videos:

Install Java for Firebase Emulator

See this guide to install Firebase Emulator and learn some basics: https://firebase.google.com/docs/emulator-suite/install_and_configure

Hand-on

Features

  • Secure funnel automatically with cloudflare
  • Automatically update App URL, callback URL with Cloudflare funnel URL
  • Automatically update Shopify API key, secret and app URL in the env files
  • Automatically registering webhook
  • Run Pubsub locally with Emulator (Except for cron)
  • Run embed app mode easily

Notes

There are still a couple of things to keep in mind:

  • Sometime you will get message Invalid auth callback. This is fine. Since we use Cloudflare, it will redirect the auth 2 times sometimes, so the state parameter in the URL is upset. Go to the auth link again will work. Since there, the auth process would be no problem. It happens mostly with the first install.
  • You can run two apps at a time, change your port, the tunnel create different link anyway
  • Use avada packages, not Shopify ones

Video guides