Skip to content

prathore90/Scheduler-Shopify-App

Repository files navigation

Shopify Node.js x Express.js x React.js Boilerplate

An embedded app starter template to get up and ready with Shopify app development with JavaScript. This is heavily influenced by the choices Shopify Engineering team made in building their starter template to ensure smooth transition between templates.

I've included notes on this repo which goes over the repo on why certain choices were made.

I also did make a video going over the entire repo as of November 4, 2022. If there's any substantial changes, the video here will be updated to reflect it.

Creating a Shopify app from scratch

Supporting Repositories:

  • Polaris Playground: A Shopify Polaris playground to build your interfaces and directly drop them in this repo, with the exception of App.jsx.

WIP:

  • npx create-shop-app@latest: A CLI tool to generate embedded Shopify app boilerplate with a tech stack of your own.
  • Learning how to build Shopify apps: A repo with webhooks, scopes, basic controllers and more setup so newcomers on the Shopify platform can learn what's called and what's required when planning out their build.

Tech Stack

  • React.js
    • raviger for easier routing.
  • Express.js
  • MongoDB
  • Vite
  • Ngrok
  • Apollo/Client

Why I made this

The Shopify CLI generates an amazing starter app but it still needs some more boilerplate code and customizations so I can jump on to building apps with a simple clone. This includes:

  • MongoDB based session and database management.
  • Monetization (recurring subscriptions) ready to go.
  • Webhooks isolated and setup.
  • React routing taken care of (I miss Next.js mostly because of routing and under the hood improvements).
  • Misc boilerplate code and templates to quickly setup inApp subscriptions, routes, webhooks and more.

Notes

Setup

Misc

  • Storing data is kept to a minimal to allow building custom models for flexibility.
    • Session persistence is also kept to a minimal and based on the Redis example provided by Shopify, but feel free to modify as required.
  • When pushing to production, add __templates to .gitignore.

About

Scheduler - Shopify App with Recharge Api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages