Track, analyze, and improve your League of Legends custom game performance with detailed statistics.
- Framework: Next.js 14 with TypeScript
- Authentication: Better Auth with email/password
- Database: PostgreSQL with Drizzle ORM
- API: tRPC for type-safe APIs
- Styling: Tailwind CSS
- Package Manager: Bun
Before you begin, ensure you have the following installed:
git clone https://github.com/its-gabo/custom-legends.git
cd custom-legendsbun installdocker-compose up -dcp .env.example .envEdit .env and add your configuration:
# Drizzle
DATABASE_URL="postgresql://postgres:custom-legends-password@localhost:5432/custom-legends"
# BetterAuth
BETTER_AUTH_URL="http://localhost:3000"
BETTER_AUTH_SECRET="your_generated_secret"bun run db:migratebun run devNavigate to http://localhost:3000
custom-legends/
โโโ src/
โ โโโ app/ # Next.js App Router
โ โ โโโ api/ # API routes
โ โ โ โโโ auth/ # Better Auth routes
โ โ โ โโโ trpc/ # tRPC API routes
โ โ โโโ _components/ # Shared components
โ โ โโโ page.tsx # Home page
โ โโโ server/ # Server-side code
โ โ โโโ api/ # tRPC routers
โ โ โ โโโ routers/ # API route handlers
โ โ โโโ db/ # Database configuration
โ โ โ โโโ schema.ts # Main schema
โ โ โ โโโ auth.schema.ts # Auth tables
โ โ โโโ lib/ # Server utilities
โ โ โโโ auth.ts # Better Auth config
โ โโโ lib/ # Shared utilities
โ โโโ styles/ # Global styles
โ โโโ trpc/ # tRPC client configuration
โโโ public/ # Static assets
โโโ drizzle.config.ts # Drizzle ORM configuration
โโโ package.json