Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximePayant committed Jan 4, 2024
1 parent de810a5 commit 23bba44
Show file tree
Hide file tree
Showing 9 changed files with 4,279 additions and 253 deletions.
10 changes: 5 additions & 5 deletions launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
source .env

if [ "$NPM_COMMAND" == "test" ]; then
docker-compose up --build -d db
docker compose up --build -d db
sleep 5
docker-compose up --build app
docker compose up --build app
EXIT_CODE=$(docker wait naboo_app_1)
docker-compose down
docker compose down
exit "$EXIT_CODE"
else
docker-compose up --build -d db
docker compose up --build -d db
sleep 5
docker-compose up --build app
docker compose up --build app
fi
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@
"dependencies": {
"@prisma/client": "^4.15.0",
"axios": "^1.4.0",
"body-parser": "^1.20.2",
"busboy": "^1.6.0",
"chai": "^4.3.7",
"connect-multiparty": "^2.2.0",
"cors": "^2.8.5",
"express": "^4.18.2",
"express-fileupload": "^1.4.3",
"express-session": "^1.17.3",
"google-auth-library": "^8.8.0",
"googleapis": "^118.0.0",
"jsonwebtoken": "^9.0.0",
"mocha": "^10.2.0",
"multer": "^1.4.5-lts.1",
"nodemailer": "^6.9.4",
"nodemon": "^2.0.21",
"oauth": "^0.10.0",
Expand Down
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ model review {
message String
guideId Int
userId Int
datetime DateTime @default(now())
datetime DateTime @default(now()) @updatedAt
guide guide @relation(fields: [guideId], references: [id], onDelete: Cascade)
user user @relation(fields: [userId], references: [id], onDelete: Cascade)
}
Expand Down
Loading

0 comments on commit 23bba44

Please sign in to comment.