Client Side Setup
Install Thirdweb
- Go to default folder of your project and open the terminal and type
cd..and and create a folderclientusingecho > clientcommand and thencd .\client\ - Now hit
npx thirdweb create --appand
- hit enter to select the default template
- ask for the name of the project and type
./and hit enter - ask for the which blockchains you want to use and select
evmand hit enter - ask for the what framework do you want to use? and select
viteand hit enter - ask for the what language do you want to use? and select
javascriptand hit
- We need one more dependency
react router domso hitnpm install react-router-domand wait for the installation to complete - Now hit
npm run devand wait for the server to start - Now open the browser and go to
http://localhost:5173and you will see the default template of thirdweb
Modify the template
Delete the src folder and create a new folder src and create a new file index.js inside the src folder