Doppelganger Backend
@ -1,36 +0,0 @@
Doppelganger Backend
This is the backend API for the Doppelganger mobile app. It provides AI-powered character generation and interaction capabilities using Anthropic.
Features
- Character generation using AI
- Character interaction (chat, social media, email)
- Fortune telling service
- Anthropic integration
Setup
- Clone this repository
- Create a virtual environment:
python -m venv venv - Activate the virtual environment:
- Windows:
venv\Scripts\activate - macOS/Linux:
source venv/bin/activate - Install dependencies:
pip install -r requirements.txt - Create a
.envfile based on.env.exampleand fill in your AWS credentials - Run the development server:
python run.pyoruvicorn app.main:app --reload
API Endpoints
GET /- Welcome messageGET /health- Health checkGET /api/characters/generate- Generate a character profilePOST /api/characters/chat- Chat with a characterPOST /api/characters/chat-with-background-character- Chat with a background characterPOST /api/characters/chat-with-main-character- Chat with a main characterGET /api/fortunes/daily- Get a daily fortunePOST /api/fortunes/generate- Generate a custom fortune
Deployment
This backend is designed to be deployed to Render. See the render.yaml file in the root directory for configuration details.