iris
November 17, 2022 ยท View on GitHub
lens protocol social media implementation
Getting Started
You will need Metamask installed on Google Chrome, connected to Polygon Mumbai network
npm install to install all dependencies
Frontend
cd frontend
npm install install deps
npm start run react app at http://localhost:3000/
Gasless
On localhost you must run app on port 4783 to enable gasless tx with Lens API
/frontend/.env add PORT=4783
Changing Chain
Default chain on localhost is mumbai. If you want to change it change /frontend/.env to VITE_CHAIN="polygon"
Remember all .env changes require an npm start restart.
Deploying
Testnet
- change
.envtoVITE_CHAIN="mumbai" npm run buildfirebase deploy --only hosting:testnet
Prod
- change
.envtoVITE_CHAIN="polygon"or removeVITE_CHAIN npm run buildfirebase deploy --only hosting:prod