This document provides instructions for setting up and deploying the PairDrop Client, ensuring you can start developing and deploying your version of PairDrop efficiently.
Ensure the following tools are installed on your system:
- Node.js (LTS version recommended)
- Yarn or npm (for managing dependencies)
Fork the PairDrop client repository to your GitHub account using the GitHub web interface. This will create a copy of the repository in your account, allowing you to make your changes and contributions.
After forking, clone your forked repository to your local machine with the following command in your terminal:
git clone https://github.com/YOUR_USERNAME/PairDrop.git
cd PairDropReplace YOUR_USERNAME with your actual GitHub username.
Create a new file named .env by copying the .env.example file. Update this new file with your specific environment variables:
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_walletconnect_project_id_here
NEXT_PUBLIC_API_URL=your_api_url_here
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: Your WalletConnect project ID for integration, it can be generated from "https://cloud.walletconnect.com/app".NEXT_PUBLIC_API_URL: This is the URL to your PairDrop API, which can be hosted on services like Heroku or any other platform supporting NodeJS deployments.
Install project dependencies using Yarn or npm. Execute one of the following commands in the project directory:
Using Yarn:
yarn installOr using npm:
npm installStart the development server to work on the PairDrop client locally. Use the following command:
Using Yarn:
yarn devOr using npm:
npm run devThe client runs in development mode. Access it by navigating to http://localhost:3000 in your browser.
Prepare the PairDrop client for deployment by building the project for production:
Using Yarn:
yarn build
yarn startOr using npm:
npm run build
npm run startThis process creates an optimized production build and serves it, preparing your PairDrop client for deployment.
Deploy the PairDrop client to your preferred hosting service that supports Next.js applications, such as Vercel, Netlify, or any compatible static site hosting service.
Following these steps will set up and deploy your PairDrop client, making it accessible for users to connect their wallets, vote on projects, and participate in your funding rounds. For further customization and development, refer to the respective documents in the project's documentation directory.