feat(phase-0): scaffold backend + web + docker + DB schema

- docker-compose.yml: timescaledb-ha (timescaledb 2.27 + vectorscale + pgvector + pgai)
  + backend (FastAPI, CUDA 12.1) + web (Next.js 14)
- docker-compose.gpu.yml: GPU profile overlay for RTX 3070 Ti
- build.bat: Windows bootstrap, auto-detects nvidia-smi and selects GPU/CPU compose
- backend: Dockerfile, pyproject.toml, FastAPI skeleton with /health and /health/db
- DB migration 001_init.sql: symbols (with trigram search), ohlcv_daily/1m (hypertables),
  macro_daily, trading_value_daily, news (vector embedding), predictions
  (with user_triggered flag for on-demand UX), prediction_outcomes, model_performance
- web: Next.js 14 + Tailwind + lightweight-charts placeholder
- README: KIS/DART/HuggingFace token issuance guides + 10 seed tickers + run instructions
This commit is contained in:
tkrmagid
2026-05-20 14:37:35 +09:00
parent 619dc7811b
commit cacddf5adf
30 changed files with 852 additions and 0 deletions

26
web/package.json Normal file
View File

@@ -0,0 +1,26 @@
{
"name": "stock-chart-site-web",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "next dev -p 3000 -H 0.0.0.0",
"build": "next build",
"start": "next start -p 3000 -H 0.0.0.0",
"lint": "next lint"
},
"dependencies": {
"next": "14.2.3",
"react": "18.3.1",
"react-dom": "18.3.1",
"lightweight-charts": "4.1.7"
},
"devDependencies": {
"@types/node": "20.12.12",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"typescript": "5.4.5",
"tailwindcss": "3.4.4",
"postcss": "8.4.38",
"autoprefixer": "10.4.19"
}
}