تخطَّ إلى المحتوى

Setup — install and run App Preview

هذا المحتوى غير متوفر بلغتك بعد.

This guide walks you from a fresh clone to a running site — the landing page, the interactive Playground, and these docs — all served on one origin by run.sh.

ToolNeeded forNotes
Python 3.9+the server (serve.py) + Sync/Teststandard library only to serve
pip packagesSync + Test keyspip install pyjwt cryptography google-api-python-client google-auth google-auth-httplib2
Node 18+building these docsonly at build time, not to run the Playground

The static preview, New/Current toggle, Try template, and Review Diff work with no credentials and no Python packages — you only need the pip packages for the live Sync and Test keys features.

From the project folder:

Terminal window
./run.sh # builds the docs once, then serves everything
./run.sh --build # force-rebuild the docs first

On start it prints every route and opens your browser:

→ Site (landing): http://localhost:8092/
→ Playground: http://localhost:8092/playground/
→ Docs: http://localhost:8092/docs/
→ Blog: http://localhost:8092/docs/blog/

The server binds 127.0.0.1 only, because /api/* exposes store credentials — never serve it on the LAN.

  1. Open http://localhost:8092/ → the landing page, with the live Playground embedded.
  2. Click Open Playground (or go to /playground/).
  3. New and Current both start empty. Press ✨ Try template to load the bundled demo into New, or drop in your own screenshots.

To pull live data and verify keys you need App Store Connect + Google Play API credentials in a .env:

  1. Create the keys — see Get your API keys and how to get each .env value.
  2. In the Playground, open ⤒ Import → Env, paste your .env, and click 🔌 Test keys — it verifies both stores without saving.
  3. When both are ✓, Save .env to local, then press ⟳ Sync to load your live listing into Current.
  • Page won’t load over file:// — browsers block fetch() there; always serve over http (./run.sh or python3 serve.py).
  • /guides/setup/ 404 on port 8092 — in the full site the docs live under /docs/, so use http://localhost:8092/docs/guides/setup/.
  • App Store 401 on Test keys — the ASC_KEY_ID / ASC_ISSUER_ID / .p8 don’t match a valid key (placeholder or truncated base64). See env values.
  • Sync says credentials missing — you haven’t Saved the .env yet, or it lacks the App Store / Play keys.