- frontend: 3000 → 3600 - backend: 8000 → 3610 - update vite.config.ts proxy - update README.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.8 KiB
1.8 KiB
ImageCreator
A full-stack image generation website with user authentication, prompt optimization, and T2I/I2I generation.
Features
- User authentication (register/login)
- Prompt optimization using LLM
- Text-to-Image generation
- Image-to-Image generation
- Generation history
Tech Stack
- Backend: FastAPI, SQLAlchemy, PostgreSQL
- Frontend: Vue 3, Naive UI, TailwindCSS
- Deployment: Docker Compose
Quick Start
Prerequisites
- Docker & Docker Compose
- Gemini API key (for image generation)
Environment Setup
-
Copy
.env.exampleto.envand configure:cp .env.example .env -
Edit
.envand add your API keys:GEMINI_API_KEY=your_gemini_api_key SECRET_KEY=your-secret-key
Running with Docker Compose
docker-compose up -d
- Frontend: http://localhost:3600
- Backend API: http://localhost:3610
- API Docs: http://localhost:3610/docs
Development
Backend
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000
Frontend
cd frontend
npm install
npm run dev
Project Structure
imagecreator/
├── backend/ # FastAPI backend
│ ├── app/
│ │ ├── api/ # API routes
│ │ ├── core/ # Security, config
│ │ ├── models/ # Database models
│ │ ├── schemas/ # Pydantic schemas
│ │ └── services/ # Business logic
│ └── tests/
├── frontend/ # Vue 3 frontend
│ └── src/
│ ├── api/ # API clients
│ ├── views/ # Page components
│ ├── stores/ # Pinia stores
│ └── router/ # Vue Router
└── docker-compose.yml
License
AGPL-3.0