Giter Club home page Giter Club logo

shopify-crypto-wallet's Introduction

Shopify MetaMask (or any crypto wallet?) Integration

More details here

Project will consist of 3 parts:

  • NextJS frontend:
    • An admin dashboard where shop owner configures which contract holder is eligible for discounts/custom merch
  • NextJS backend:
    • Server that stores the data
    • Dynamically create promo codes for discounts using Shopify API (?) - need to do some research on that
  • A widget that
    • connects with crypto wallet
    • talks to server to verify if user is eligible for discounts/custom merch
    • fetches promo code from server and applies it to the user's cart

Requirements

Development

  • Clone the project and run npm install
  • Create .env from .env.example
  • Add SHOPIFY_API_KEY=<your API key> from your Shopify App settings
  • Add SHOPIFY_API_SECRET=<your API secret>
  • Add SHOP=<your shop>.myshopify.com
  • SCOPES will be updated, for now just leave them as in the example
  • Start NGROK and replace HOST with your NGROK URL

In your Shopify App settings:

You will need to update it every time you change NGROK URL

  • npm run dev
  • Click Select store under Test your app in Shopify App settings
  • This should prompt you to install the app in your development store and open it in an admin dashboard. Common error is The redirect URI is not whitelisted, in that case you need to update NGROK URL in Allowed redirection URL(s)

Theme App Extension

Example of a theme app extension: https://github.com/Shopify/theme-extension-getting-started

WIP: https://www.loom.com/share/9cb9caccd1494387937ae0ce6b614d66

shopify-crypto-wallet's People

Contributors

jaredflomen avatar sergey-tyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.