Skip to content

An embedded Shopify app starter template made with Node, Express, React and Vite, with all the required stuff hooked up.

License

Notifications You must be signed in to change notification settings

Dleibe1/shopify-node-express-knex-app

 
 

Repository files navigation

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

Shout out to kinngh for the origional version!

I really just did this for myself because I prefer Knex and Objection. There were also some setup tweaks I had to do to get everything working, so if kinngh's version gives you an error (I had problems with importing {Provider} but fixed it by changing @shopify/app-bridge-react to version 3.2.5 )

I made some changes in SETUP.md for you to check out.

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. If you want to learn Shopify app dev in-depth, I also sell a course How To Build Shopify Apps

How To Build Shopify Apps Course

Creating a Shopify app from scratch

Supporting repositories

Tech Stack

  • React.js
    • raviger for routing.
  • Express.js
  • MongoDB
  • Vite
  • Ngrok

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

  • Refer to SETUP
  • Migrations are available in DOCS

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.

About

An embedded Shopify app starter template made with Node, Express, React and Vite, with all the required stuff hooked up.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.9%
  • HTML 0.1%