Skip to content

Commit

Permalink
Start REST transition
Browse files Browse the repository at this point in the history
  • Loading branch information
koredefashokun committed Dec 29, 2024
1 parent 84e32b3 commit 0e30d0b
Show file tree
Hide file tree
Showing 21 changed files with 5,464 additions and 104 deletions.
14 changes: 14 additions & 0 deletions api/drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as dotenv from 'dotenv';
import type { Config } from 'drizzle-kit';
dotenv.config();

export default {
schema: './src/db/schema.ts',
out: './drizzle',
dialect: 'postgresql',
dbCredentials: {
url: process.env.DATABASE_URL!
},
verbose: true,
strict: true
} satisfies Config;
8 changes: 6 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@apollo/server": "^4.10.4",
"@graphql-tools/schema": "^10.0.0",
"@prisma/client": "^6.0.0",
"@prisma/client": "^6.1.0",
"@sentry/cli": "^2.31.0",
"@sentry/node": "^7.109.0",
"@sentry/profiling-node": "^7.109.0",
Expand All @@ -22,6 +22,7 @@
"compression": "^1.7.4",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"drizzle-orm": "^0.38.3",
"expo-server-sdk": "^3.9.0",
"express": "^4.18.2",
"express-jwt": "^8.4.1",
Expand All @@ -33,6 +34,7 @@
"jsonwebtoken": "^9.0.2",
"lodash": "^4.17.21",
"nodemailer": "^6.9.13",
"pg": "^8.13.1",
"redis": "^4.7.0",
"subscriptions-transport-ws": "^0.11.0"
},
Expand All @@ -44,8 +46,10 @@
"@types/jsonwebtoken": "^9.0.3",
"@types/lodash": "^4.14.198",
"@types/nodemailer": "^6.4.15",
"@types/pg": "^8.11.10",
"drizzle-kit": "^0.30.1",
"nodemon": "^3.1.7",
"prisma": "^6.0.0",
"prisma": "^6.1.0",
"ts-node": "^10.9.2",
"tsx": "^4.11.0",
"typescript": "^5.3.3"
Expand Down
Loading

0 comments on commit 0e30d0b

Please sign in to comment.