Skip to content

Commit

Permalink
feat: add Prisma ORM
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed Nov 24, 2022
1 parent 55c31bf commit 67c6fc5
Show file tree
Hide file tree
Showing 9 changed files with 1,790 additions and 388 deletions.
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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=mongodb://127.0.0.1:27017,127.0.0.1:27018/modernmern?replicaSet=testset
4 changes: 3 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"mikestead.dotenv",
"Orta.vscode-jest"
"Orta.vscode-jest",
"prisma.prisma",
"mongodb.mongodb-vscode"
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@
"[json][jsonc][yaml]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[prisma]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "Prisma.prisma"
}
}

0 comments on commit 67c6fc5

Please sign in to comment.