Coder Social home page Coder Social logo

janmei / shopify-node-app-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carstenlebek/shopify-node-app-starter

0.0 0.0 0.0 436 KB

πŸš€πŸš€ A Shopify embedded app starter template, with updated dependencies, session storage, app context and examples for basic functionalities.

License: MIT License

Shell 0.83% JavaScript 99.17%

shopify-node-app-starter's Introduction

Shopify Node App Starter

This is a starter template for embedded shopify apps based on the shopify cli node app.

Contributions to create the perfect shopify app boilerplate are very welcome! 🀩

Changes to the default Shopify node app starter

  • Updated dependencies (@apollo/client instead of react-apollo, react 17, next.js 12, polaris 7)
  • MongoDB session storage already set up (full credit goes to Harshdeep Singh Hura)
  • Ready to use online and offline accesstokens simultaneously
  • App context set up. Can be used to store data, that only needs to be fetched once, but is needed in multiple places
  • Link component to convert <a> tags to Next Links for relative paths
  • Routepropagation set up
  • Example API with verifyRequest() is set up
  • Relay pagination example
  • Webhook registration and persistance after server restart
  • Examples for creating, displaying and canceling of app subscriptions
  • Loading screen while the app context is loading

Boilerplate to create an embedded Shopify app made with Node, Next.js, Shopify-koa-auth, Polaris and App Bridge React.

TODO

  • GDPR webhooks

Installation

  • Fork and clone repo
  • Create an app in the shopify partner dashboard
  • Run shopify app connect to connect the app to shopify
  • Run npm install to install dependencies
  • Add ENCRYTION_STRING and MONGO_URL to your .env file (.env example is in the root directory)
  • Run shopify app serve to start dev enviroment

Requirements

Usage

Same usage as apps created with the Shopify CLI

Important

API routes have to start with /api/. All relative paths starting with /api/ will be converted to absolute paths by a next.js rewrite

License

This respository is available as open source under the terms of the MIT License.

shopify-node-app-starter's People

Contributors

carstenlebek avatar jonathanheaden avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.