mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: create model
This commit is contained in:
1 parent
ba5026fa56
commit
4ed8358738
14 files changed
+5033
-273
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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`:'
|
||||
|
||||
Reference in new issue
Block a user