Add README steps to add PINATA keys

This commit is contained in:
Adw8 2025-02-03 17:16:21 +05:30
parent f3992301c5
commit 273a2c165c
2 changed files with 17 additions and 8 deletions

View File

@ -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=

View File

@ -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 <https://app.pinata.cloud> 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.