Skip to content

๐ŸŽฎ Custom Legends - League of Legends custom game stats tracker

Notifications You must be signed in to change notification settings

its-gabo/custom-legends

Repository files navigation

โš”๏ธ Custom Legends

Track, analyze, and improve your League of Legends custom game performance with detailed statistics.


๐Ÿ› ๏ธ Tech Stack

  • 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

๐Ÿš€ Getting Started

Prerequisites

Before you begin, ensure you have the following installed:


๐Ÿ”ง Installation

1. Clone the repository

git clone https://github.com/its-gabo/custom-legends.git
cd custom-legends

2. Install dependencies

bun install

3. Start the database with Docker

docker-compose up -d

4. Set up environment variables

cp .env.example .env

Edit .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"

5. Set up the database schema

bun run db:migrate

6. Start the development server

bun run dev

7. Open your browser

Navigate to http://localhost:3000


๐Ÿ“ Project Structure

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

About

๐ŸŽฎ Custom Legends - League of Legends custom game stats tracker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published