尚未检测到更新。GitHub 发布版本后会显示在这里。
A web app used to generate rnb song lyrics
翻译准备中
正在加载完整 README。
查看完整 README ↗An intimate conversation experience designed to foster deeper connections through AI-guided questions.
Whispers and Flames creates a safe, private space for couples to explore their relationship through thoughtful, context-aware questions. Players select categories and "spicy levels," then answer AI-generated questions designed to spark meaningful conversations.
Clone the repository:
git clone https://github.com/Phazzie/WhispersAndFlames.git
cd WhispersAndFlames
Install dependencies:
npm install
Set up environment variables:
cp .env.example .env.local
Edit .env.local and add your XAI API key:
XAI_API_KEY=your_xai_api_key_here
NEXT_PUBLIC_APP_URL=http://localhost:9002
NODE_ENV=development
Start the development server:
npm run dev
Open http://localhost:9002 in your browser
# Development
npm run dev # Start dev server on port 9002
npm run build # Build for production
npm start # Start production server
# Code Quality
npm run typecheck # Run TypeScript type checking
npm run lint # Run ESLint
npm run lint:fix # Fix ESLint issues automatically
npm run format # Format code with Prettier
# Testing
npm run test # Run unit/integration tests
npm run test:ui # Run tests with Vitest UI
npm run test:coverage # Run tests with coverage report
npm run test:e2e # Run Playwright e2e tests
# AI Development (Genkit)
npm run genkit:dev # Start Genkit developer UI
npm run genkit:watch # Start Genkit with watch mode
| Variable | Required | Default | Description |
|---|---|---|---|
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY | Yes | - | Clerk publishable key (dashboard.clerk.com); needed at build time too |
CLERK_SECRET_KEY | Yes | - | Clerk secret key; validated at startup |
XAI_API_KEY | Yes | - | xAI API key (console.x.ai) |
DATABASE_URL | No | - | Postgres connection string |
DISABLE_DATABASE | No | false | Set to true to force in-memory storage |
CRON_SECRET | If DB | — | Bearer token for /api/cron/cleanup; the route 403s without it |
NODE_ENV | No | development | Environment mode |
NEXT_PUBLIC_APP_URL | No | http://localhost:9002 | Public app URL |
The project includes comprehensive test coverage:
Run specific test suites:
npm run test # All unit/integration tests
npm run test:e2e # End-to-end tests only
npm run test:coverage # Generate coverage report
The easiest way to deploy this Next.js app. Zero configuration required!
Quick Start:
.env.vercel)Documentation:
Cost: Free tier available, Pro starts at $20/month
For those who prefer containerized deployments with full control.
Quick Start:
# Test locally with Docker
docker-compose --env-file .env.docker up --build
# Deploy to Digital Ocean (via dashboard)
# See: https://cloud.digitalocean.com/apps
Documentation:
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗