Mise en place de prisma et de express

This commit is contained in:
ETHEVE Fabien
2023-02-06 12:07:34 +01:00
parent fc8791004e
commit 0c934709ce
5 changed files with 1133 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
node_modules
# Keep environment variables out of version control
.env
+2
View File
@@ -0,0 +1,2 @@
import { Express } from "express";
import { PrismaClient } from "@prisma/client";
+1093
View File
File diff suppressed because it is too large Load Diff
+24
View File
@@ -0,0 +1,24 @@
{
"dependencies": {
"@prisma/client": "^4.9.0",
"express": "^4.18.2",
"prisma": "^4.9.0"
},
"name": "popcorn",
"version": "1.0.0",
"description": "ajout des liens ",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/scotty974/PopCorn.git"
},
"author": "Fabien, Sacha, Antoine, Lucas",
"license": "ISC",
"bugs": {
"url": "https://github.com/scotty974/PopCorn/issues"
},
"homepage": "https://github.com/scotty974/PopCorn#readme"
}
+11
View File
@@ -0,0 +1,11 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}