This contains everything you need to run your app locally.
View your app in AI Studio: https://ai.studio/apps/drive/1R3__ouHwNf5S4qpwaZf7JycHGRjzWx36
Prerequisites: Node.js
- Install dependencies:
npm install - Set the
GEMINI_API_KEYin .env.local to your Gemini API key - Run the app:
npm run dev
The mini program can call a lightweight proxy API that wraps Gemini and returns review segments in the shape your frontend expects.
- Ensure
GEMINI_API_KEYis set in .env.local - Start the server:
npm run server - POST
http://localhost:8787/api/auditwith JSON:{"input":"https://mp.weixin.qq.com/s/xxxx"}or raw text
Optional: add ?mock=1 to return mock data without calling Gemini.
Build and run both frontend + API:
docker compose up --build- Frontend:
http://localhost:5173 - API:
http://localhost:8787/api/health
Optional (when you need a different API base for the frontend build):
docker build --target web --build-arg VITE_API_BASE=http://localhost:8787 -t wecheck-web .