Nest framework TypeScript starter repository.
This project requires specific versions of Node.js and pnpm to ensure consistency across all development environments.
- Node.js: 22.17.1 (LTS)
- pnpm: 9.15.0 (managed by corepack)
Run the setup script that will handle everything for you:
./scripts/setup.shEnsure you have docker available in your machine. Then, run the setup-docker script:
Run the setup script that will handle everything for you:
./scripts/setup-docker.shAlternatively, if you're using Windows, run the powershell script version:
& .\scripts\setup-docker.ps1-
Install Node.js 22.17.1
If you're using fnm (recommended):
fnm install 22.17.1 fnm use 22.17.1
If you're using nvm:
nvm install 22.17.1 nvm use 22.17.1
-
Enable corepack (this manages pnpm version automatically):
corepack enable -
Verify versions:
node --version # Should output: v22.17.1 pnpm --version # Should output: 9.15.0
-
Copy .env files:
cp .env.template .env
cp .env.template.test .env.testThe project includes:
.nvmrcfile for Node.js version management.node-versionfile for additional compatibilitypackageManagerfield inpackage.jsonfor corepackenginesfield inpackage.jsonto enforce versions
$ pnpm installEnsure the database is running (you can run it with docker compose up postgres --wait -d).
Then, run the script:
pnpm run migrate# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod# unit tests
$ pnpm run test
# e2e tests
$ pnpm run test:e2e