Groq-Powered NFT Story Generator on Monad
This project requires several API keys and configuration variables to function properly. Follow these steps to set up your environment:
-
Copy the example environment file to create your local configuration:
cp .env.example .env.local -
Edit
.env.localand add your API keys and configuration values:- Groq API Key: Get a key from Groq Console
- MongoDB URI: Your MongoDB connection string
- IPFS Configuration: If using IPFS for storing content
-
IMPORTANT: Never commit your
.env.localfile to version control! This file contains sensitive API keys and credentials.
The project includes a script to verify your environment configuration:
npm run check-env
This will check if all required environment variables are properly set.
- Groq API Key: This key should be kept secure. If your key is exposed:
- Immediately revoke the exposed key in the Groq Console
- Generate a new key
- Update your
.env.localfile with the new key - If the key was accidentally committed, consider it compromised
To start the development server:
npm run dev
This will automatically check your environment configuration before starting the server.