A Ready to Use NextJS dapp using TalentLayer.
- Fork the code
- Clone your new repository
- Copy .env.example file into a new .env file:
cp .env.example .env
- Minimum required configuration:
- NEXT_PUBLIC_PLATFORM_ID: use 4, the default value, or create your own platform to setup your custom fees and more:
- NEXT_PUBLIC_WALLECT_CONNECT_PROJECT_ID: Create a free account on wallet connect and get your project ID
- NEXT_PUBLIC_INFURA_ID & NEXT_PUBLIC_INFURA_SECRET: used to post on IPFS, create a free account on Infura here
- DATABASE_URL: create a postgres in two clicks here with supabase
- For more advanced configuration check the official doc
- Minimum required configuration:
- Use the recommended node version:
18^
, if you are using nvm just run:nvm use
- Install the dependencies:
npm install
- Run local server for development
npm run dev
- That's it!
To activate gasless transactions and delegation you will need a dedicated Seed & Address which will be used to execute transactions on behalf of your users, and set the following environment variables:
- Set NEXT_PRIVATE_DELEGATE_SEED_PHRASE: Dedicated Seed phrase for your delegate
- Set NEXT_PUBLIC_DELEGATE_ADDRESS: Address of your delegate
- Add matic to NEXT_PUBLIC_DELEGATE_ADDRESS: To pay for transactions on behalf of your users
- Set NEXT_PUBLIC_ACTIVATE_DELEGATE_MINT to true
- If you wish to give the user the option to directly add your backend delegator to new users during onboarding set NEXT_PUBLIC_ADD_DELEGATE_MINT_ADDRESS to "true"
To use this feature your Users will need to activate delegation by calling the following function on the TalentLayerId smart contract:
/**
* @notice Allows to give rights to a delegate to perform actions for a user's profile
* @param _profileId The TalentLayer ID of the user
* @param _delegate Address of the delegate to add
*/
function addDelegate(uint256 _profileId, address _delegate);
TalentLayer is an open protocol and dev toolkit for hiring applications. You can use it to build platforms that leverage a unified decentralized backend for job posts, escrow, user profiles, and reputations.
Introduction: Read here.
Documentation: Read here.
XMTP & TL: Read here.
XMTP is an open protocol and dev toolkit for messaging applications. You can use it to build peer-to-peer messaging
Introduction: Read here.
Documentation: Read here.
Example DAPP Tutorial: Read here.
Web3mail is a decentralized email service built by IExec which allows a platform to send emails to a user without knowing the email address of the user.
Iexec Documentation: Read here.
Technical TalentLayer integration documentation: Read here.