feat: create model

This commit is contained in:
Justin Lin committed 2026-10-11 19:30:38 +11:00
1 parent ba5026fa56
commit 4ed8358738
14 files changed
+5033 -273

No files matched your search

+1
View File
@@ -15,6 +15,7 @@
"@odyssey/game": "workspace:*",
"@odyssey/models": "workspace:*",
"@odyssey/utils": "workspace:*",
"@odyssey/database": "workspace:*",
"@trpc/server": "^11.8.0",
"bcrypt": "^5.1.1",
"commander": "^11.0.0",
+2
View File
@@ -6,6 +6,7 @@ import swaggerUI from 'swagger-ui-express'
import passport from 'passport'
import * as trpcExpress from '@trpc/server/adapters/express'
import { connectDB } from '@odyssey/models'
import { db } from '@odyssey/database'
import './auth/passport.js'
import socketServer from './api/socket.js'
@@ -22,6 +23,7 @@ import { appRouter } from './routers/index.js'
import { createContext } from './trpc.js'
async function main() {
console.log(db)
if (!config.secret) {
logger.error(
'No SECRET_KEY found in .env! To set up a persistent key, please run `bun run setup`:'