Skip to content
iv0ksPublic

About

A modern shelter management and pet adoption platform, real-time adoption application tracking, pet status management, and shelter analytics.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Turborepo starter with NestJS and Next.js

This is a community-maintained example. If you experience a problem, please submit a pull request with a fix. GitHub Issues will be closed.

Using this example

Use Node.js 26.12.0 or newer and pnpm 12.14.0 (the version pinned in packageManager). Create the example, then install dependencies and start development from its root:

npx create-turbo@latest -e with-nestjs
cd with-nestjs
pnpm install
pnpm dev

If you choose a different directory name when prompted, use that directory instead. The NestJS API runs at localhost:3000, and the Next.js frontend runs at localhost:3001. Turborepo builds shared packages before starting development tasks.

What's inside?

This Turborepo includes the following packages and apps:

Apps and Packages

.
├── apps
│   ├── shared                       # NestJS app (https://nestjs.com).
│   └── web                       # Next.js app (https://nextjs.org).
└── packages
    ├── @repo/shared                 # Shared NestJS resources.
    ├── @repo/eslint-config       # ESLint configurations (includes Prettier)
    ├── @repo/jest-config         # Jest configurations
    ├── @repo/typescript-config   # tsconfig.json files used throughout the monorepo
    └── @repo/ui                  # Shareable React component library.

Each package and application is mostly written in TypeScript.

Utilities

This Turborepo has some additional tools already set up for you:

Commands

Run these commands from the monorepo root.

Build

# Build all apps and packages that have a `build` script.
pnpm build

Develop

# Run development servers for all apps and packages that have a `dev` script.
pnpm dev

Test

# Run unit tests for all apps and packages that have a `test` script.
pnpm test

# Run end-to-end tests for all apps and packages that have a `test:e2e` script.
pnpm test:e2e

See @repo/jest-config to customize test behavior.

Lint

# Lint all apps and packages that have a `lint` script.
pnpm lint

See @repo/eslint-config to customize lint behavior.

Check types

# Type-check all apps and packages that have a `check-types` script.
pnpm check-types

Format

# Format supported TypeScript, TSX, and Markdown files.
pnpm format

See @repo/eslint-config/prettier-base to customize formatting.

Remote Caching

Tip

Vercel Remote Cache is free for all plans. Get started today at vercel.com.

Turborepo can use Remote Caching to share cache artifacts across machines and CI.

By default, Turborepo caches locally. To enable Remote Caching, create a Vercel account, then authenticate:

pnpm turbo login

Next, link the repository to Remote Cache from the repository root:

pnpm turbo link

Useful Links

This example takes inspiration from the with-nextjs Turborepo example and the 01-cats-app NestJS sample.

Learn more about Turborepo:

About

A modern shelter management and pet adoption platform, real-time adoption application tracking, pet status management, and shelter analytics.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages