mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 22:03:14 +02:00
feat: added prisma
This commit is contained in:
parent
2aa364374d
commit
ca280d192b
3
monorepo/apps/backend/.gitignore
vendored
Normal file
3
monorepo/apps/backend/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
# Keep environment variables out of version control
|
||||||
|
.env
|
||||||
14
monorepo/apps/backend/prisma/schema.prisma
Normal file
14
monorepo/apps/backend/prisma/schema.prisma
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
generator client {
|
||||||
|
provider = "prisma-client-js"
|
||||||
|
}
|
||||||
|
|
||||||
|
datasource db {
|
||||||
|
provider = "postgresql"
|
||||||
|
url = env("DATABASE_URL")
|
||||||
|
}
|
||||||
|
|
||||||
|
model users {
|
||||||
|
id Int @id @default(autoincrement())
|
||||||
|
name String? @db.VarChar(100)
|
||||||
|
email String? @unique @db.VarChar(100)
|
||||||
|
}
|
||||||
@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
||||||
"namedInputs": {
|
"namedInputs": {
|
||||||
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
"default": [
|
||||||
|
"{projectRoot}/**/*",
|
||||||
|
"sharedGlobals"
|
||||||
|
],
|
||||||
"production": [
|
"production": [
|
||||||
"default",
|
"default",
|
||||||
"!{projectRoot}/.eslintrc.json",
|
"!{projectRoot}/.eslintrc.json",
|
||||||
@ -34,14 +37,28 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"targetName": "test"
|
"targetName": "test"
|
||||||
},
|
},
|
||||||
"exclude": ["apps/my-workspace-e2e/**/*", "apps/my-nest-app-e2e/**/*"]
|
"exclude": [
|
||||||
|
"apps/my-workspace-e2e/**/*",
|
||||||
|
"apps/my-nest-app-e2e/**/*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"targetDefaults": {
|
"targetDefaults": {
|
||||||
"@angular-devkit/build-angular:browser": {
|
"@angular-devkit/build-angular:browser": {
|
||||||
"cache": true,
|
"cache": true,
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": [
|
||||||
"inputs": ["production", "^production"]
|
"^build"
|
||||||
|
],
|
||||||
|
"inputs": [
|
||||||
|
"production",
|
||||||
|
"^production"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"inputs": [
|
||||||
|
"production",
|
||||||
|
"^production"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"generators": {
|
"generators": {
|
||||||
|
|||||||
@ -13,10 +13,13 @@
|
|||||||
"@angular/platform-browser": "~17.3.0",
|
"@angular/platform-browser": "~17.3.0",
|
||||||
"@angular/platform-browser-dynamic": "~17.3.0",
|
"@angular/platform-browser-dynamic": "~17.3.0",
|
||||||
"@angular/router": "~17.3.0",
|
"@angular/router": "~17.3.0",
|
||||||
"@nestjs/common": "^10.0.2",
|
"@nestjs/common": "^10.3.8",
|
||||||
"@nestjs/core": "^10.0.2",
|
"@nestjs/core": "^10.3.8",
|
||||||
"@nestjs/platform-express": "^10.0.2",
|
"@nestjs/platform-express": "^10.3.8",
|
||||||
|
"@nrwl/workspace": "^19.0.4",
|
||||||
|
"@prisma/client": "^5.14.0",
|
||||||
"axios": "^1.6.0",
|
"axios": "^1.6.0",
|
||||||
|
"prisma": "^5.14.0",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"rxjs": "^7.8.0",
|
"rxjs": "^7.8.0",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
|
|||||||
15068
monorepo/pnpm-lock.yaml
Normal file
15068
monorepo/pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
nx run-many --target=serve --projects=frontend,backend --parallel
|
pnpm i
|
||||||
|
nx run-many --target=serve --projects=frontend,backend --parallel
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user