From 273a2c165c5d32c9fa749158b7c9df78c03df309 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Mon, 3 Feb 2025 17:16:21 +0530 Subject: [PATCH] Add README steps to add PINATA keys --- .env.example | 2 ++ README.md | 23 +++++++++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.env.example b/.env.example index b774f6f..97c88cc 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ +# Get key from https://fal.ai FAL_AI_KEY= NEXT_PUBLIC_MTM_TOKEN_MINT=97RggLo3zV5kFGYW4yoQTxr4Xkz4Vg2WPHzNYXXWpump @@ -6,5 +7,6 @@ NEXT_PUBLIC_SOLANA_RPC_URL=https://young-radial-orb.solana-mainnet.quiknode.pro/ NEXT_PUBLIC_SOLANA_WEBSOCKET_URL=wss://young-radial-orb.solana-mainnet.quiknode.pro/67612b364664616c29514e551bf5de38447ca3d4 NEXT_PUBLIC_USDC_MINT=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v +# Get keys from https://app.pinata.cloud/developers/api-keys NEXT_PUBLIC_PINATA_JWT= NEXT_PUBLIC_PINATA_GATEWAY= diff --git a/README.md b/README.md index 6e1b9a9..d1e2bdf 100644 --- a/README.md +++ b/README.md @@ -16,31 +16,38 @@ This project is a Solana-based meme generator that allows users to connect their ## Setup -1. Install dependencies: +- Install dependencies: ```sh npm install ``` -2. Copy the `.env.example` file to `.env.local` and add your FAL AI key: +- Copy the `.env.example` file to `.env.local` and add your FAL AI key: ```sh cp .env.example .env.local ``` -3. Add your FAL AI key to the `.env.local` file: +- Add your FAL AI key to the `.env.local` file: ```env # Get key from https://fal.ai/ FAL_AI_KEY=your_fal_ai_key ``` -4. Run the development server: +- Setup a project on then add the following to `.env.example` + ```env + # Get keys from https://app.pinata.cloud/developers/api-keys + NEXT_PUBLIC_PINATA_JWT= + NEXT_PUBLIC_PINATA_GATEWAY= + ``` + +- Run the development server: ```sh npm run dev ``` -5. Open your browser and navigate to `http://localhost:3000`. +- Open your browser and navigate to `http://localhost:3000`. ## Usage -1. Connect your Solflare or Phantom wallet using the "Connect Wallet" button. -2. Select an AI model and enter a prompt to generate a meme. -3. Pay the required MTM tokens and wait for the meme to be generated. +- Connect your Solflare or Phantom wallet using the "Connect Wallet" button. +- Select an AI model and enter a prompt to generate a meme. +- Pay the required MTM tokens and wait for the meme to be generated.