This repository contains the backend API for the Tipbox application, built with Node.js, Express, and TypeScript. The architecture follows Domain-Driven Design (DDD) and Modular Monolith principles.
# 1. Container'ları başlat
docker-compose up -d
# 2. Veritabanı şemasını uygula
docker-compose exec backend npx prisma db push
# 3. Seed data'yı yükle
docker-compose exec backend npm run db:seed
# 4. Prisma Studio'yu başlat (opsiyonel)
docker-compose exec backend npx prisma studio --port 5555Detaylı kurulum rehberi için: docs/SETUP_GUIDE.md
- Node.js (18+ recommended)
- PostgreSQL
- Redis
npm install
cp .env.example .env
# Fill in the .env file
npx prisma db push
npx prisma generate
npm run db:seed
npm run devnpm run dev— Development server (with nodemon)npm run build— TypeScript buildnpm run start— Runs the compiled codenpm run db:seed— Load seed data to databasenpm run db:studio— Start Prisma Studionpm run lint— Checks code with ESLintnpm run format— Formats code with Prettier
src/
domain/
application/
infrastructure/
interfaces/
After running seed, you can use these test accounts:
- Email:
omer@tipbox.co - Password:
password123
For more test accounts, see docs/SETUP_GUIDE.md
- Setup Guide - Detailed setup instructions
- Session Summary - Recent changes and fixes
Pull requests and contributions are welcome!