Giter VIP home page Giter VIP logo

voucher's Introduction

Offline Payment Vouchers

Demo: https://voucher-84h8hn.spheron.app/

Pay offline using Polygon Payment Vouchers:

  1. Login using your Metamask wallet.
  2. Generate payment vouchers (it will lock your funds in the smart contract).
  3. Send link or show QR-code to make a payment.

Quick Start (run this project locally)

Step 0: Prerequisites: Make sure you've installed Node.js ≥ 12

Step 1: Create .env on the root dir. && enter all configs using env.example

Step 2: Install dependency

yarn install or npm install

Step 3: Deploy contract to Mumbai Testnet

yarn deploy:mumbai or npm deploy:mumbai

Step 4: Run frontend locally

yarn start or npm start

As you can see in package.json, this does two things:

  1. builds & deploys smart contract to Mumbai TestNet
  2. builds & run frontend code on localhost

Go ahead and play with the app and the code. As you make code changes, the app will automatically reload. Every smart contract in Polygon has its [own associated account]. When you run deploy:mumbai, your smart contract gets deployed to the Mumbai Test Network TestNet with a throwaway account.

voucher's People

Contributors

darcksday avatar

Stargazers

 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.