[The instructions for install & run the code are at the bottom]
We are Trips Community, a Travel DAO, established in 2017, a recognised as the leader in the transition to Web3 for the travel industry. We have sold the first ever NFT booking in a Villa in Ibiza, Spain and the first NFT Hotel booking in Venice, Italy . We are also the first to organize a travel conference Proof of Attendance NFT at the VRWRS 2021 summit in Annency, in France.
ADD_TEXT
npm install
cd ethereum
node compile.js
touch .env
open ".env" file with your preferred text editor and write down this in it:
MNEMONIC = "[SEED]" #put here your mnemonic seed used to deploy the contract on the blockchain PROVIDER_URL = "[INFURA_PROVIDER_URL]" #insert here your infura url (go to infura.io, create account and new project, then select testnet you want to use i.e. rinkeby and then copy the link here)
node deploy.js
Once the deploy is succeeded, it will be generated /.env.local
file with a
env variable containing the contract address you have deployed.
This file is used by the frontend to interact with the contract using web3.
npm run dev
go to https://localhost:3000 and feel free to use the dapp
npm run test
NOTE: Tests are not intended to be completed. Feel free to write your own tests.
npm run build && npm run export
Create a Project on Firebase
npm install -g firebase-tools
firebase init
- then go ahead and select your preferences
firebase login
firebase deploy