Skip to content

Commit

Permalink
Merge pull request #6 from mash-up-kr/feature/switch-to-mongoose
Browse files Browse the repository at this point in the history
서비스 DB MongoDB로 교체, Prisma 의존성 제거, Mongoose로 ODM 교체
  • Loading branch information
J-Hoplin authored Jun 22, 2024
2 parents ffbdb76 + 1b62008 commit d60cde1
Show file tree
Hide file tree
Showing 11 changed files with 1,301 additions and 3,340 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATABASE_URL="postgresql://postgres:dorabangs!@localhost:5432/dorabangs?schema=public"
MONGO_URL="mongodb+srv://<UserName>:<Password>@<Host>/<DB>?<External Options>"
17 changes: 0 additions & 17 deletions docker-compose.yaml

This file was deleted.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"db:up": "docker-compose up -d",
"db:down": "docker compose down",
"prisma:migrate": "npx prisma migrate dev $1",
"prisma:push": "npx prisma db push",
"prisma:deploy": "npx prisma migrate deploy",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
Expand All @@ -28,12 +25,13 @@
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.2.2",
"@nestjs/core": "^10.0.0",
"@nestjs/mongoose": "^10.0.6",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/swagger": "^7.3.1",
"@prisma/client": "^5.13.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cross-env": "^7.0.3",
"mongoose": "^8.4.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1"
},
Expand All @@ -52,7 +50,6 @@
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.5.0",
"prettier": "^3.0.0",
"prisma": "^5.13.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
Expand Down
Loading

0 comments on commit d60cde1

Please sign in to comment.