2026-03-27 10:37:42 +02:00
2026-03-27 10:37:42 +02:00
2026-03-26 11:01:01 +02:00
2026-03-27 10:37:42 +02:00
2026-03-26 11:01:01 +02:00
2026-03-26 11:01:01 +02:00
2026-03-26 11:01:01 +02:00
2026-03-27 10:37:42 +02:00
2026-03-27 10:37:42 +02:00
2026-03-27 10:37:42 +02:00

PrismaNestAngular

Blog post used as guide for setting up Nx + Angular + NestJs + Prisma stack here

Setup

  1. create .env file in root of the directory and define DATABASE_URL. Default is DATABASE_URL="postgresql://webapp:webpass@db:5432/webappdb/webappdb?schema=public"

  2. Install node modules

pnpm install

Running

Run entire stack in dev environent using docker compose:

docker compose up -d --build

By default frontend can be accessed in localhost:4200

By default backend can be accessed in localhost:3000/api

Testing

Run tests for a specific project:

pnpm nx run web-app:test --outputStyle=static

Run all tests in the workspace:

pnpm nx run-many -t test --all --outputStyle=static

Typechecking

Run typecheck for all projects:

pnpm nx run-many -t typecheck --all --outputStyle=static

Run typecheck for a single project:

pnpm nx run web-app:typecheck --outputStyle=static
pnpm nx run api:typecheck --outputStyle=static

Building

Build a specific application:

pnpm nx run web-app:build --outputStyle=static
pnpm nx run api:build --outputStyle=static

Build all projects that define a build target:

pnpm nx run-many -t build --all --outputStyle=static
Description
Template for angular-nestJs-prisma stack
Readme 692 KiB
Languages
TypeScript 68.3%
JavaScript 13.9%
SCSS 10.2%
HTML 7.6%