Local Development
Set up a local development environment for AIGCS
Prerequisites
- Node.js >= 24.0.0
- pnpm >= 9.0.0
- Docker (optional, for database or full-stack testing)
Setup
Running Services
Start each service in a separate terminal:
Environment Variables
Create .env.local in the project root:
See the Configuration Reference for all available options.
Useful Commands
pnpm Upgrade Standard
To keep local development versions consistent with build runs inside the Docker container, AIGCS uses corepack to lock the pnpm package manager version. When upgrading pnpm, follow these standard steps:
- Update package.json: Open the root
package.jsonfile and modify the"packageManager"field to your target pnpm version (e.g.,"pnpm@11.15.1"). - Activate Version: Run the corepack command in the root folder to download, activate, and update the locked binaries:
- Synchronize Lockfile: Run
pnpm installto updatepnpm-lock.yaml: - Build & Verify: Run
pnpm buildto confirm everything builds successfully under the new pnpm release before committingpackage.jsonandpnpm-lock.yaml.