Go to file
2025-02-06 11:42:32 +05:30
deploy Add instructions to deploy sol-token-locker stack 2025-02-06 11:36:13 +05:30
src Upload generated meme to Pinata (#9) 2025-02-04 15:16:24 +00:00
.env.example Upload generated meme to Pinata (#9) 2025-02-04 15:16:24 +00:00
.gitignore Use MTM price based on USDC for meme generation (#7) 2025-01-30 15:03:09 +00:00
index.html Handle responsiveness in mobile browser (#6) 2025-01-27 14:08:02 +00:00
next-env.d.ts Handle responsiveness in mobile browser (#6) 2025-01-27 14:08:02 +00:00
next.config.mjs build fixes 2024-12-20 18:24:44 -05:00
package-lock.json Upload generated meme to Pinata (#9) 2025-02-04 15:16:24 +00:00
package.json Upload generated meme to Pinata (#9) 2025-02-04 15:16:24 +00:00
postcss.config.js cool 2024-12-19 19:10:08 -05:00
quotes-service.ts Use MTM price based on USDC for meme generation (#7) 2025-01-30 15:03:09 +00:00
README.md Update root README 2025-02-06 11:42:32 +05:30
server.ts Use MTM price based on USDC for meme generation (#7) 2025-01-30 15:03:09 +00:00
styles.css Handle responsiveness in mobile browser (#6) 2025-01-27 14:08:02 +00:00
tailwind.config.ts cool 2024-12-19 19:10:08 -05:00
tsconfig.json Handle responsiveness in mobile browser (#6) 2025-01-27 14:08:02 +00:00
tsconfig.server.json Upload generated meme to Pinata (#9) 2025-02-04 15:16:24 +00:00

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:

    npm install
    
  • Copy the .env.example file to .env.local and add your API keys:

    cp .env.example .env.local
    
  • Add your FAL AI key to the .env.local file:

    # 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:

    # Get keys from https://app.pinata.cloud/developers/api-keys
    PINATA_JWT=
    PINATA_GATEWAY=
    
  • Run the development server:

    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.

Deploy

Follow instructions for deploying sol-mem-gen and sol-token-locker