https://consensys-project-vic-en.vercel.app/
- Node.js >= v14
- Truffle and Ganache
- Yarn
git checkout master
- Run
yarn installin project root to install Truffle build and smart contract dependencies - Run local testnet in port
7545with an Ethereum client, e.g. Ganache truffle migrate --network developmenttruffle console --network development- Run tests in Truffle console:
test developmentnetwork id is 1337, remember to change it in Metamask as well!
cd clientyarn installyarn start- Open
http://localhost:3000
truffle migrate --network developmentcd client && yarn installyarn build && yarn start- Open local ui from
http://localhost:3000 - Make sure your Metamask localhost network is in port
7545and chain id is1337. - If you get
TXRejectedErrorwhen sending a transaction, reset your Metamask account from Advanced settings. - Navigate to the link to add events on
http://localhost:3000/createthen add an event. - Return to the homepage and test the purchasing ticket works by clicking on the
Buy Ticketlink.
0x4286F42d354441590959345bD121fe464b204116
Event ticketing allows event organizers to create custom EVENT tickets to SELL for their events.
Event organizers create an event and specify max number of attendees along with other informations. Attendees puchase event tickets with the event is yet to expire. Event tickets funds accumulate in escrow of the event creator which can be withdrawn at any time. Event moderators can verify that an attendee has purchased a ticket just by querying the contract with the address of the attendee. Event moderators can update the state of event to "expired", after which attendee(s) will not be able to puchase tickets.
- Attendees can proof they purchased a ticket by showing ownership or presenting the address they used to purchase the ticket.
- Enter service web site
- Login with Metamask
- Select event you want to purchase ticket for.
- Pay for ticker to event.
- Event creators have a separate page to create event with details.
client: Project's React frontend.contracts: Smart contracts that are deployed in the Ropsten testnet.migrations: Migration files for deploying contracts incontractsdirectory.test: Tests for smart contracts.
ROPSTEN_INFURA_PROJECT_URL=
PRIVATE_KEY=
- Add more features for Event creator to view and withdraw accumulated funds on frontend
- Improve aesthetics of frontend.