Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ jspm_packages/
.fusebox/

.idea/

/src/generated/prisma
3 changes: 2 additions & 1 deletion backend/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"module": "commonjs",
"target": "es6",
"baseUrl": "./src",
"types": ["node"]
},
"exclude": [
"node_modules"
],
"include": [
"src/**/*"
]
, "prisma.config.ts" ]
}
2,437 changes: 2,178 additions & 259 deletions backend/package-lock.json

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "git@github.com:ichhoa129/express-mongoose-boilerplate.git",
"author": "ichhoa <ichhoa129@gmail.com>",
"license": "MIT",
"prisma": {
"seed": "node prisma/seed.js"
},
"scripts": {
"prepare": "test -d node_modules/husky && husky install || echo \"husky is not installed\"",
"lint": "eslint --fix --ext .js .",
Expand All @@ -18,9 +21,11 @@
"db:reset": "yarn knex migrate:rollback && yarn knex migrate:latest && yarn knex seed:run"
},
"dependencies": {
"@prisma/adapter-pg": "^7.8.0",
"@prisma/client": "^7.8.0",
"@sentry/node": "^7.64.0",
"axios": "^1.4.0",
"bcrypt": "^5.0.1",
"bcrypt": "^5.1.1",
"cloudinary": "^1.27.1",
"cors": "^2.8.5",
"debug": "^4.2.0",
Expand Down Expand Up @@ -55,6 +60,7 @@
"@babel/runtime": "^7.14.0",
"@commitlint/cli": "^17.5.0",
"@commitlint/config-conventional": "^17.4.4",
"@types/node": "^25.6.0",
"babel-eslint": "^10.1.0",
"babel-plugin-module-resolver": "^4.1.0",
"babel-plugin-transform-runtime": "^6.23.0",
Expand All @@ -64,6 +70,7 @@
"faker": "^5.5.3",
"husky": "^8.0.3",
"lint-staged": "^15.0.2",
"nodemon": "^2.0.7"
"nodemon": "^2.0.7",
"prisma": "^7.8.0"
}
}
15 changes: 15 additions & 0 deletions backend/prisma.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// This file was generated by Prisma, and assumes you have installed the following:
// npm install --save-dev prisma dotenv
import "dotenv/config";
import { defineConfig } from "prisma/config";

export default defineConfig({
schema: "prisma/schema.prisma",
migrations: {
path: "prisma/migrations",
seed: "node prisma/seed.js",
},
datasource: {
url: process.env["DATABASE_URL"],
},
});
Loading