feat: Projekt-Skelett (Bun, TypeScript, Drizzle-Deps)

This commit is contained in:
2026-06-09 20:18:06 +00:00
parent 8298b522fc
commit 568e282b07
7 changed files with 268 additions and 0 deletions

6
src/server/types.test.ts Normal file
View File

@@ -0,0 +1,6 @@
import { expect, test } from 'bun:test';
import { PAIRS } from './types';
test('vier Pairs definiert', () => {
expect(PAIRS).toHaveLength(4);
});

11
src/server/types.ts Normal file
View File

@@ -0,0 +1,11 @@
export interface Candle {
ts: number; // Unix ms, Start der Candle
open: number;
high: number;
low: number;
close: number;
volume: number;
}
export const PAIRS = ['BTC_USDT', 'ETH_USDT', 'SOL_USDT', 'XRP_USDT'] as const;
export type Pair = (typeof PAIRS)[number];