CulosAI, kullanıcıların AI destekli görsel üretimi yapabileceği modern bir web uygulamasıdır. Stripe entegrasyonu ile güvenli ödeme işlemleri desteklenmektedir.
- AI Görsel Üretimi: Metin açıklamalarından görsel oluşturma
- Token Sistemi: Kullanım bazlı ödeme modeli
- Stripe Ödeme Entegrasyonu: Güvenli kredi kartı işlemleri
- Kullanıcı Yönetimi: Kayıt, giriş, profil yönetimi
- Görsel Galerisi: Üretilen görsellerin saklanması ve görüntülenmesi
- Ödeme Geçmişi: Tüm işlemlerin takibi
- Güvenli Ödeme: PCI DSS uyumlu Stripe entegrasyonu
- Token Paketleri: 4 farklı paket seçeneği
- Webhook Desteği: Gerçek zamanlı ödeme durumu takibi
- Test Kartları: Geliştirme için test kartları
- Ödeme Geçmişi: Detaylı işlem raporları
- Starter: 50 tokens - $9.99
- Popular: 150 tokens - $24.99 (17% indirim)
- Pro: 500 tokens - $69.99 (30% indirim)
- Enterprise: 1500 tokens - $199.99 (33% indirim)
- Node.js - Server runtime
- Express.js - Web framework
- MongoDB - Veritabanı
- Mongoose - ODM
- Stripe - Ödeme işlemcisi
- JWT - Kimlik doğrulama
- AWS S3 - Dosya depolama
- Next.js 14 - React framework
- TypeScript - Tip güvenliği
- Tailwind CSS - Styling
- Stripe Elements - Ödeme formu
- React Context - State yönetimi
- Node.js 18+
- MongoDB
- Stripe hesabı
- AWS S3 bucket (opsiyonel)
git clone <repository-url>
cd culosaicd backend
npm installcd frontend
npm install# MongoDB Connection
MONGO_URI=mongodb://localhost:27017/culosai
# JWT Secret
JWT_SECRET=your_jwt_secret_key_here
# Stripe Configuration
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key_here
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret_here
# Server Configuration
PORT=5000
NODE_ENV=development
# AWS Configuration (for image storage)
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
AWS_REGION=us-east-1
AWS_S3_BUCKET=your_s3_bucket_name# Backend API URL
NEXT_PUBLIC_API_URL=http://localhost:5000/api
# Stripe Configuration
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_publishable_key_here
# App Configuration
NEXT_PUBLIC_APP_NAME=CulosAI
NEXT_PUBLIC_APP_URL=http://localhost:3000cd backend
npm run devcd frontend
npm run dev- Stripe Dashboard'a gidin
- Test modunda API anahtarlarınızı alın
# Stripe CLI kurulumu
stripe listen --forward-to localhost:5000/api/webhooks/stripe- Başarılı Ödeme: 4242 4242 4242 4242
- Başarısız Ödeme: 4000 0000 0000 0002
- Yetersiz Bakiye: 4000 0000 0000 9995
culosai/
├── backend/
│ ├── models/
│ │ ├── Payment.js # Ödeme modeli
│ │ ├── Token.js # Token işlemleri
│ │ └── User.js # Kullanıcı modeli
│ ├── routes/
│ │ ├── payments.js # Ödeme API'leri
│ │ └── webhooks.js # Stripe webhook'ları
│ └── index.js
├── frontend/
│ ├── app/
│ │ ├── buy-tokens/ # Token satın alma
│ │ ├── payment-history/ # Ödeme geçmişi
│ │ └── payment-help/ # Ödeme yardımı
│ └── components/
└── README.md
- PCI DSS Uyumlu: Stripe ile güvenli ödeme işleme
- JWT Token: Güvenli kimlik doğrulama
- Input Validation: Tüm kullanıcı girdileri doğrulanır
- Rate Limiting: API rate limiting (gelecek özellik)
- HTTPS: Production'da zorunlu
# Test kartları ile ödeme testi
curl -X POST http://localhost:5000/api/payments/create-payment-intent \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"packageId": "starter"}'# Stripe CLI ile webhook testi
stripe trigger payment_intent.succeeded- Ödeme Durumu: Real-time webhook takibi
- Hata Logları: Detaylı hata kayıtları
- Performans: API response time monitoring
- Kullanım İstatistikleri: Token kullanım analizi
- Environment Variables: Production değerlerini ayarlayın
- Stripe: Live mode'a geçin
- SSL: HTTPS sertifikası kurun
- Database: Production MongoDB cluster
- CDN: Statik dosyalar için CDN
# Backend Dockerfile
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
EXPOSE 5000
CMD ["npm", "start"]- Fork yapın
- Feature branch oluşturun (
git checkout -b feature/amazing-feature) - Commit yapın (
git commit -m 'Add amazing feature') - Push yapın (
git push origin feature/amazing-feature) - Pull Request oluşturun
Bu proje MIT lisansı altında lisanslanmıştır.
- Email: hanifealtintas@gmail.com
- Documentation: golensoft
- Issues: GitHub Issues
- İlk sürüm
- Stripe ödeme entegrasyonu
- Token sistemi
- AI görsel üretimi
- Kullanıcı yönetimi
Not: Bu proje geliştirme aşamasındadır. Production kullanımı için ek güvenlik önlemleri alınmalıdır.