Git Product home page Git Product logo

ticket's Introduction

Ticket

Transferable Ticket Creation (Ticket NFT)

Any questions feel free to contract [email protected].

Inspiration

I love sunset rollercoaster and they will have a concert on 2021/10/8 in Hong Kong! However, I have no ticket(E-tickets with qr code) so I would like to buy second hand ticket... Then the problems come out...

Problem Solution
Someone pretend they have the ticket A function that I can check the one is owner or not.
Someone have one ticket but capture the qrcode and sell to multiple person Make ticket as ERC721 troken! each sell is a troken transfer, no need to capture qrcode.
I afraid someone will take a photo to my qrcode and go the concert before me. Renew QR code anytime if you want!

What's next?

  • implement rest api for ticket metadata etc. location...
  • public to public testnet
  • transfer ticket on Opensea
  • buy ticket with ether

Solution demo

Publisher

  1. Create Campaign

Create Campaign

  1. Create Campaign ticket category

Create Campaign ticket category

  1. Validate QR code

correct_result

Customer

  1. Buy ticket

Buy Ticket

  1. Transfer ticket

transfer_ticket

  1. Renew QR codes

renew_qrcode

  1. Show all owner

read_data

  1. Read ticket data

Requirement

  • truffle
  • yarn/npm
  • metamask

How to start?

Access demo branch

git checkout campaign-factory-demo

Install dependency

Contract

cd contract
yarn install

Web interface

cd demo/ui
yarn install

Deploy contract

  • setup local Ganache RPC Server 127.0.0.1:8545
cd contract
truffle deploy
  • copy contract address to demo/ui/src/ethereum/CampaignFactory.js and replace campaignFactoryAddress value

deploy_contract

Open web interface

cd demo/ui
yarn start

ticket's People

Contributors

chrischan888 avatar 15077693d avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

0xandyeth becore

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.