- Clone the repo to your local system
git clone https://github.com/kprohith/open-ticket.git
- Open the directory
cd open-ticket
- Install the required node modules
yarn install
- Create a file in the root dir called
.env.development.local
and set the value ofREACT_APP_CONTRACT_ID
REACT_APP_CONTRACT_ID=<contract address from etherscan>
- Start the development server
yarn start
-
Components
- A starter-template homepage that shows a buy button to buy a ticket.
- A Connect/Disconnect button to interface with Metamask wallets.
- Admin-accessible Check In page to verify ownership of user tickets/nfts.
- Admin-accessible Settings page to OPEN/CLOSE sale of tickets.
- Your Tickets page to show the user's tickets/nfts.
- Navigation bar that dynamically shows pages available based on users wallet address.
-
The process of "buying" a ticket will mint an ERC721 NFT.
-
Metamask has been integrated for users to connect and perform transactions.
-
Once a user connects their Metamask wallet using the connect button, they can proceed to BUY a ticket, pay the transaction fee and secure a ticket which will result in a NFT being minted and written to the blockchain.
-
The user can then go to the Your Tickets page to check their ticket.
-
The user can sort their tickets by newest, oldest and alphabetical order.
-
Only Admin (owner of the smart contract) can open/close sales.
-
In browser toast pop-ups direct to Etherscan to verify transactions on the blockchain.
-
Ownership of NFTs can be verify on OpenSea.
-
Admins can scan the wallet QR code of a user to verify ownership of the ticket and Check in the user.
-
Once checked-in, the metadata of the ticket on the blockchain is updated to show that the user has checked in.