Coder Social home page Coder Social logo

shoployal's Introduction

shopLoyal

shopify loyalty integration app showcase

This app will allow the store owner to set up a multiplier for every dollar spent by the customer. This in turn will track points per customer and send them an email after every order.

setup:

put your api keys in .env or in your environment variables.

Format: SHOPIFY_API_KEY=XXXXXXXXX SHOPIFY_API_SECRET=YYYYYYYYY

config/application.rb has the app host url. Put the ngrok or running servers public url here.

Project Details

Your job is to create a simple loyalty program private app for Shopify using the Shopify API, Ruby on Rails and a database of your choice.
  
Merchants can install the app from your application (even though it won't be listed on the app store), then specify the # of points a customer can earn per $ dollar spent. 
After this has been set any customer that places an order will earn points. 
For example, if the merchant sets the number of points per dollar spent value to 10, then a customer places an order for $20, then the customer will earn 10 x 20 = 200 points.  
Use the order webhook to receive order events and process the webhook in a background worker.
 
The only way customers need to know their balance is through an email which they will receive from the loyalty program app after each order. 
The email will say something like "You earned 123 points on your last order. You now have a balance of 5000 points".  Send this email asynchronously.
 
After a merchant installs the app they should be able to log into the app again from their Shopify dashboard and:

    Update the # of points per dollar spent 
    View a grid of each customer's points balance (for any that placed orders, no need to sync history or show old points balances). 
    Each row should show customer name, customer email, and points balance.

shoployal's People

Contributors

msolovyov avatar dependabot[bot] avatar

Watchers

 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.