Giter Site home page Giter Site logo

f-rabbit16g / walletconnect-ticketing-dapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from masaun/walletconnect-ticketing-dapp

0.0 0.0 0.0 1.21 MB

WalletConnect based Ticket🎫🎟dApp(System)

JavaScript 42.30% TypeScript 55.03% CSS 0.72% HTML 1.95%

walletconnect-ticketing-dapp's Introduction

WalletConnect Ticket🎫🎟dApp


【Introduction of WalletConnect Ticket dApp】

  • This dApp is walletConnetct based ticket system
  • Attendence can buy Ticket by ERC20. (This time use demo token od ERC20 only. Demo token is called OceanToken)
  • Ticket which attendence bought is issued by signature of WalletConnect. (And also, that ticket is issued by timestamp and transaction-hash when attendence buy ticket)
  • Attendence can show and display bought and validated ticket when they go through at gate of some events.

 


【Specification of WalletConnect Ticket dApp】

  • Number of be able to buy ticket is limited to 100.
  • Ticket price is 0.0001 OCEAN which is demo token of ERC20 (And also, OceanToken is demo token of ERC20)
  • Ticket which attendence bought is issued by signature of WalletConnect.
    • However, it has been in progress yet.
    • Currently, it use value of constant. In future, it replace value of variable of signature of WalletConnec.

 


【Work flow】

  1. Admin user publish ticket by pushing button of "Mint" ot "Factory Mint"
  2. Attdence buy published ticket by pushing a button of "BuyTicket"
  3. Attdence show bought and validated ticket by pushing a button of "ShowTicket" (Next time, I will implement to display bought and validated ticket by QR-code of walletConnect)

 


【Setup】

Setup wallet by using Metamask

  1. Add MetaMask to browser (Chrome or FireFox or Opera or Brave)
    https://metamask.io/

  2. Adjust appropriate newwork below

Rinkeby Test Network

 

Setup backend

  1. Deploy contracts to Rinkeby Test Network
(root directory)

$ npm run migrate:rinkeby

 

Setup frontend

  1. Execute command below in root directory.
$ npm run client

(@Note: This time, it use ./client as frontend. It doesn't use ./client2 as them)
  1. Access to browser by using link
http://127.0.0.1:3000

 


【References】

walletconnect-ticketing-dapp's People

Contributors

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