mirror of
https://github.com/Floriansylvain/PopCorn.git
synced 2026-08-19 19:53:24 +02:00
Mise en place de prisma et de express
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
# Keep environment variables out of version control
|
||||||
|
.env
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
import { Express } from "express";
|
||||||
|
import { PrismaClient } from "@prisma/client";
|
||||||
Generated
+1093
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||||
|
}
|
||||||
@@ -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")
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user