コンテンツにスキップ

Getting Started

Getting Started は Start Here の 2 番目のページです。Python DSL example から .fluxion.json を生成し、Web Runtime / Playground で preview するまでを最短で確認します。

インストールせずに試す場合は、GitHub Pages の hosted playground を最初に開きます。Repository owner が未確定の場合の URL 形式は https://<owner>.github.io/Fluxion/playground/ です。

Hosted playground では Text DSL を入力し、browser 内で compile して、playback / scrub と generated JSON inspection まで確認できます。ローカルで runtime や site を build する前に、DSL と IR の流れを素早く把握するための第一導線です。

Repository root から次を実行します。

Terminal window
PYTHONPATH=python python examples/simple_circle.py

このコマンドは Python DSL example から examples/simple_circle.fluxion.json を生成します。

Terminal window
cd web
npm ci
npm run build

Repository root に戻って次を実行します。

Terminal window
python -m http.server 8000

http://localhost:8000/web/ を開くと、Text DSL を編集しながら live compile、playback controls、scrubbing、generated JSON output を確認できます。

GitHub Pages site をローカルでビルドする

Section titled “GitHub Pages site をローカルでビルドする”

Astro site は site/ にあります。Playground を site artifact にコピーするため、先に runtime をビルドします。

Terminal window
cd web
npm run build
cd ../site
npm ci
npm run build
npm run preview

Site build は web/index.htmlweb/dist、generated example JSON を site/public/playground/ にコピーし、その後 site/dist/ を生成します。