Skip to content

Commit

Permalink
Add prisma ORM
Browse files Browse the repository at this point in the history
  • Loading branch information
aurora-dot committed May 10, 2024
1 parent 7ee686c commit e8d29fc
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 8 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=
204 changes: 199 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:watch": "vitest",
"test": "vitest --run",
"coverage": "vitest run --coverage",
"prepare": "husky install"
"prepare": "husky"
},
"dependencies": {
"next": "14.2.1",
Expand All @@ -20,7 +20,7 @@
},
"devDependencies": {
"@testing-library/react": "^15.0.2",
"@types/node": "^20",
"@types/node": "^20.12.11",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitejs/plugin-react": "^4.2.1",
Expand All @@ -34,8 +34,10 @@
"postcss": "^8",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
"prisma": "^5.13.0",
"tailwindcss": "^3.4.1",
"typescript": "^5",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"vitest": "^1.5.0"
},
"lint-staged": {
Expand Down
14 changes: 14 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init

generator client {
provider = "prisma-client-js"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}

0 comments on commit e8d29fc

Please sign in to comment.