Tickex is an innovative decentralized ticketing solution based on blockchain technology, specifically on the Polygon platform, and realized through smart contracts. This project aims to enhance security and transparency in the ticketing sector, emphasizing the development and evaluation of a functional prototype demonstrating the application and interaction of smart contracts within ticket sales.
- Copy the
.env.example
file and rename it to.env
:Thecp .env.example .env
.env.example
file contains sample values for running the application. For development and deployment, specific values should be inserted into the.env
file.
- Install MetaMask as a browser extension.
- Add the Mumbai Test Network to MetaMask with the following details:
- RPC URL:
https://rpc-mumbai.maticvigil.com/
- Chain ID:
80001
- RPC URL:
- The currency used in this network is MATIC.
-
Compile Contracts: First, compile the smart contracts using the command:
npm run compile
-
Deploying to the Mumbai Testnet:
- Set environment variables in the
.env
file with your RPC URL and private key. - Deploy the contracts using:
npx hardhat run scripts/deploy.ts --network mumbai
- Note down the contract addresses output by the deployment script.
- Set environment variables in the
-
Updating Contract Addresses:
- Insert the noted contract addresses into the
.env
file.
- Insert the noted contract addresses into the
- To perform transactions on the Mumbai Testnet, you need a small amount of MATIC.
- Obtain free MATIC from faucets like Polygon Mumbai Faucet.
-
After setting up the environment and deploying the contracts, you can start the application using Docker:
docker-compose up
-
Open
localhost:4000
to view it in your browser. -
A live demo of the application is also available at https://tickex.fly.dev/. Please note that full functionality is available only with MetaMask installed in your browser.
- Claas Thore Klein
- Mats Klein
This project is licensed under the MIT License - see the LICENSE file for details.