ローカル開発

コードをカスタマイズし、変更をテストし、手動で実行したい上級ユーザー向けです。ほとんどのユーザーには不要です — GitHub Actions がすべて自動的に処理します。


要件


インストール

git clone https://github.com/YOUR_USERNAME/richfolio.git
cd richfolio
npm install

設定

ポートフォリオ(config.json

cp config.example.json config.json

config.json を編集し、目標配分と現在の保有を入力してください。フィールドの詳細は設定を参照してください。

API キー(.env

cp .env.example .env

API キーを入力します。最低限必要なのは RESEND_API_KEYRECIPIENT_EMAIL です。各サービスの段階的な手順は API キーを参照してください。


実行

# Daily brief — prices + news + AI analysis + email + Telegram
npm run dev

# Intraday alert check — compares vs morning baseline
npm run intraday

# Weekly rebalancing report — prices + allocation drift + email + Telegram
npm run weekly

# Re-analyze single ticker with after-hours price
npm run refresh -- SMH

# Type-check without emitting
npx tsc --noEmit

メールと Telegram で結果を確認してください。


Richfolio — free, open-source portfolio monitoring.

This site uses Just the Docs, a documentation theme for Jekyll.