Loading repository data…
Loading repository data…
Satyamk8788 / repository
DAppEventX is a decentralized event ticketing system using Solidity, JavaScript (Next.js), and MongoDB. Features include responsive design, web3 authentication, smart contract-based ticketing, and blockchain-based ticket verification.
The project revolves around DappEventX.sol, a Solidity-written Ethereum smart contract. It leverages the OpenZeppelin library to ensure secure and standardized development of the contract.
The core of the contract is defined by two primary structures: EventStruct and TicketStruct, representing an event and a ticket, respectively.
createEvent: Allows a user to create a new event.updateEvent: Allows the event owner to update the details of an existing event.deleteEvent: Allows the event owner or contract owner to delete an event.getEvents: Returns all existing events.getMyEvents: Returns all events created by the caller.getSingleEvent: Returns a single event by its ID.buyTickets: Allows a user to buy tickets for an event.getTickets: Returns all tickets for a specific event.refundTickets: Refunds all tickets for a specific event.payout: Allows the event owner or contract owner to payout after an event.mintTickets: Mints NFT tickets for an event.Supply the following keys in your .env variable:
NEXT_PUBLIC_RPC_URL=http://127.0.0.1:8545
NEXT_PUBLIC_ALCHEMY_ID=<YOUR_ALCHEMY_PROJECT_ID>
NEXT_PUBLIC_PROJECT_ID=<WALLET_CONNECT_PROJECT_ID>
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=somereallysecretsecret
YOUR_ALCHEMY_PROJECT_ID: Get Key Here
WALLET_CONNECT_PROJECT_ID: Get Key Here
Follow these steps to run the application:
yarn installyarn blockchainyarn deployyarn seedyarn devNow, your application should be up and running.