Installation & Setup
Prerequisites
- Node.js
>= 20 - npm
>= 9(recommended)
Optional (but often required): build tools for native dependencies (for example bcrypt, better-sqlite3). On macOS, Xcode Command Line Tools are usually sufficient.
Install ZinTrust
You can install ZinTrust globally (recommended for getting started) or per-project.
Option A: Global install
bash
npm install -g @zintrust/coreThis provides the CLI entrypoints:
zin(primary)zandzt(shorthands)zintrust(full name)
Verify:
bash
zin --versionOption B: Project-local install
If you prefer reproducible tooling per repo:
bash
npm install --save-dev @zintrust/coreThen run the CLI via:
bash
npx zin --versionCreate your first project
Interactive (recommended):
bash
zin new my-app
cd my-appScripted (CI / automation):
bash
zin new my-app \
--template api \
--database postgresql \
--port 7777 \
--governance \
--no-interactivezin new can also control:
- git init:
--no-git - dependency install:
--no-installor--install - package manager:
--package-manager npm|yarn|pnpm
Install adapters and drivers (plugin-style)
Many integrations are installed on-demand using the domain:driver form:
bash
zin add db:sqlite
zin add queue:redis
zin add broadcast:redis
zin add cache:redis
zin add mail:nodemailerSome drivers are native modules; if installs fail, ensure your machine has build tooling available.
Start the app
From a generated project:
bash
zin startIf you are running the framework repo directly, npm run dev starts the dev server.