Files
angular-nestJs-prisma/README.md
2026-03-26 12:20:00 +00:00

26 lines
729 B
Markdown

# PrismaNestAngular
Blog post used as guide for setting up Nx + Angular + NestJs + Prisma stack [here](https://arcadioquintero.com/en/blog/achieving-type-safety-across-angular-and-nestjs-with-prismas-new-generator
)
## 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
````sh
pnpm install
````
## Running
Run entire stack in dev environent using docker compose:
````sh
docker compose up -d --build
````
By default frontend can be accessed in [localhost:4200](http://localhost:4200)
By default backend can be accessed in [localhost:3000/api](http://localhost:3000/api)