Skip to content

Installation and Environment

Dependency Version Purpose
Node.js ≥ 18 (20 / 22 recommended) Run the scaffold, build the frontend
npm Installed with Node Install dependencies, build
Python + uv Python ≥ 3.12 Only needed when choosing the Python backend
JDK + Maven JDK 21, Maven 3.9+ Only needed when choosing the Java backend
OpenSSL Any version dev.sh generates a random JWT key (Python backend)
Docker Optional Build and run the deployment image
  • Install uv (dependency management and execution).
  • Python must be ≥ 3.12; uv handles the virtual environment automatically.
  • Linting uses ruff (installed as a development dependency by uv sync).
  1. Install dependencies

    终端窗口
    npm install
  2. Compile TypeScript

    终端窗口
    npm run build

    Output goes to dist/. You can also use npm run dev to skip compilation and run the source directly with tsx.

  3. Verify the installation

    终端窗口
    node dist/index.js

    An interactive prompt appearing means the installation succeeded.

After the scaffold finishes, the generated project needs its own toolchain:

  • Frontend: install dependencies with npm (the template includes package-lock.json).
  • Python backend: install dependencies with uv sync; pyproject.toml defines them.
  • Java backend: build with Maven; pom.xml defines the dependencies.

The install subcommand of dev.sh installs the frontend and Python backend dependencies for you. See Development and Build Scripts.