Skip to content

Commit

Permalink
Intergate PrismaORM
Browse files Browse the repository at this point in the history
  • Loading branch information
zenkiet committed Sep 21, 2023
1 parent 5905606 commit 3deacad
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 31 deletions.
11 changes: 10 additions & 1 deletion server/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
POSTGRES_USER=zenfection
POSTGRES_PASSWORD=123456
POSTGRES_DB=task-management
POSTGRES_DB=task-management

# This was inserted by `prisma init`:
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema

# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?schema=public
5 changes: 4 additions & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"@nestjs/core": "^10.0.0",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/swagger": "^7.1.11",
"@prisma/client": "^5.3.1",
"nestjs-prisma": "^0.22.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1"
},
Expand All @@ -37,7 +39,7 @@
"@swc/jest": "^0.2.29",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
"@types/node": "^20.6.0",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
Expand All @@ -46,6 +48,7 @@
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.4",
"prettier": "^3.0.0",
"prisma": "^5.3.1",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
Expand Down

0 comments on commit 3deacad

Please sign in to comment.