✧ Setting up your local environment
Pre-requisites
Have this repository forked on your environment
Setup
ATTENTION
After forking the repository, you must change the branch to the develop branch to get the latest version.
WARNING
main branch is not stable at the moment.
Clone the repository
git clone https://github.com/YourUsername/swaplace-dapp.gitthen
git switch developInstalling dependencies
Run the following commands to install all the dependencies
OR
After, run the development server:
Environment Variables
The project comes with a .env.example file. You must rename it to .env and fill the variables with your values. Most RPC providers offer free testnet nodes. You can use Alchemy or Infura to get a free node. We currently use Sepolia for testing purposes but you can use any other provider and evm chains to test the application.
Alchemy has two types of keys, one for the HTTP provider and another for the Alchemy SDK. You should use the HTTP key for the NEXT_PUBLIC_ALCHEMY_SEPOLIA_HTTP variable and the SDK key for the NEXT_PUBLIC_ALCHEMY_SEPOLIA_KEY variable.
The HTTP key is used to connect to the blockchain and the SDK key is used to connect to the Alchemy API, which allows us to get the user custody tokens easily.
WARNING
The NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID= used in the .env file is public. They are not meant to be used in production.
If you want to use your own please create your Project ID in the WalletConnect website (not mandatory).
Contributing
To know more about how you can contribute see our notion page.
Last updated