sol-mem-gen/README.md
adwait 7bdc0a241d Upload generated meme to Pinata (#9)
Part of https://www.notion.so/Deploy-memes-markto-market-188a6b22d47280e38324efab1d3de55f
- Use pinata URL in frontend

Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-authored-by: Adw8 <adwaitgharpure@gmail.com>
Reviewed-on: #9
Co-authored-by: adwait <adwait@noreply.git.vdb.to>
Co-committed-by: adwait <adwait@noreply.git.vdb.to>
2025-02-04 15:16:24 +00:00

54 lines
1.2 KiB
Markdown

# sol-mem-gen
This project is a Solana-based meme generator that allows users to connect their wallets, pay with MTM tokens, and generate memes using AI models.
## Features
- Connect to Solflare and Phantom wallets
- Pay with MTM tokens
- Generate memes using various AI models
## Prerequisites
- Node.js
- npm
- Solflare or Phantom wallet
## Setup
- Install dependencies:
```sh
npm install
```
- Copy the `.env.example` file to `.env.local` and add your API keys:
```sh
cp .env.example .env.local
```
- Add your FAL AI key to the `.env.local` file:
```env
# Get key from https://fal.ai/
FAL_AI_KEY=your_fal_ai_key
```
- 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
PINATA_JWT=
PINATA_GATEWAY=
```
- Run the development server:
```sh
npm run dev
```
- Open your browser and navigate to `http://localhost:3000`.
## Usage
- 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.