34 lines
626 B
Markdown
34 lines
626 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
|
|
````
|
|
|
|
## Run tasks
|
|
|
|
Run frontend:
|
|
```sh
|
|
pnpm nx serve web-app
|
|
```
|
|
|
|
Run backend:
|
|
````sh
|
|
pnpm nx serve web-app
|
|
````
|
|
|
|
To create a production bundle:
|
|
|
|
```sh
|
|
pnpm nx build web-app
|
|
```
|
|
|