Celo Composer support React boilerplate template with TailwindCSS. This is a starter kit with no additional boilerplate code. It's a perfect starter kit to get your project started on Celo blockchain.
Create a copy of .env.example and rename it to .env.
Create a WalletConnect Cloud Project ID from WalletConnect Cloud
Provide the WalletConnect Cloud Project ID in your .env file to use WalletConnect in your project. As shown in the .env.example file.
NEXT_PUBLIC_WC_PROJECT_ID=YOUR_EXAMPLE_PROJECT_ID;Install all the required dependencies to run the dApp.
Using yarn
yarnor using npm
npm iReact + Tailwind CSS Template does not have any dependency on hardhat. This starterkit does not include connection of Hardhat/Truffle with ReactJS. It's up to the user to integrate smart contract with ReactJS. This gives user more flexibility over the dApp.
- To start the dApp, run the following command.
yarn devor using npm
npm run dev- Next.js app framework
- TailwindCSS for UI
/pagesincludes the main application components (specificallylayout.tsxandpage.tsx)layout.tsxincludes configurationpage.tsxis the main page of the application
/componentsincludes components that are rendered inpage.tsx/publicincludes static files