-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
82 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { defineConfig } from 'drizzle-kit'; | ||
import { defineConfig } from "drizzle-kit"; | ||
|
||
if(!process.env.DATABASE_URL) { | ||
throw Error("No Database url found in environment") | ||
if (!process.env.DATABASE_URL) { | ||
throw Error("No Database url found in environment"); | ||
} | ||
|
||
export default defineConfig({ | ||
out: './src/db/migrations', | ||
schema: './src/db/collections/index.ts', | ||
dialect: 'postgresql', | ||
dbCredentials: { | ||
url: process.env.DATABASE_URL, | ||
}, | ||
}); | ||
out: "./src/db/migrations", | ||
schema: "./src/db/collections/index.ts", | ||
dialect: "postgresql", | ||
dbCredentials: { | ||
url: process.env.DATABASE_URL, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
{ | ||
"name": "backend", | ||
"main": "./src/index.ts", | ||
"module": "src/index.ts", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "bun --watch src/index.ts", | ||
"build": "bun build src/index.ts --target bun --outdir ./dist", | ||
"compile": "bun build src/index.ts --compile --minify --sourcemap --target bun --outfile backend", | ||
"check": "bun x tsc --noEmit", | ||
"preview": "NODE_ENV=production bun dist/index.js", | ||
"format": "bun x @biomejs/biome format --write src", | ||
"lint": "bun x @biomejs/biome check src", | ||
"lint:fix": "bun x @biomejs/biome check src --write", | ||
"db:generate": "bun x drizzle-kit generate", | ||
"db:push": "bun x drizzle-kit push --verbose --strict", | ||
"db:migrate": "bun x drizzle-kit migrate", | ||
"db:check": "bun x drizzle-kit check", | ||
"db:studio": "bun x --bun drizzle-kit studio" | ||
}, | ||
"dependencies": { | ||
"@bogeychan/elysia-logger": "^0.1.6", | ||
"@elysiajs/eden": "^1.1.3", | ||
"@elysiajs/swagger": "^1.1.6", | ||
"@oslojs/crypto": "^1.0.1", | ||
"@oslojs/encoding": "^1.1.0", | ||
"@sinclair/typebox": "0.32.34", | ||
"arctic": "^2.3.3", | ||
"drizzle-orm": "^0.38.2", | ||
"drizzle-typebox": "0.1.1", | ||
"elysia": "^1.1.26", | ||
"nanoid": "^5.0.9", | ||
"postgres": "^3.4.5" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.9.4", | ||
"@types/bun": "^1.1.14", | ||
"@types/node": "^22.10.2", | ||
"drizzle-kit": "^0.30.1", | ||
"typescript": "^5.7.2" | ||
}, | ||
"overrides": { | ||
"@sinclair/typebox": "0.32.34" | ||
} | ||
} | ||
"name": "backend", | ||
"main": "./src/index.ts", | ||
"module": "src/index.ts", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "bun --watch src/index.ts", | ||
"build": "bun build src/index.ts --target bun --outdir ./dist", | ||
"compile": "bun build src/index.ts --compile --minify --sourcemap --target bun --outfile backend", | ||
"check": "bun x tsc --noEmit", | ||
"preview": "NODE_ENV=production bun dist/index.js", | ||
"format": "bun x @biomejs/biome format --write src", | ||
"lint": "bun x @biomejs/biome check src", | ||
"lint:fix": "bun x @biomejs/biome check src --write", | ||
"db:generate": "bun x drizzle-kit generate", | ||
"db:push": "bun x drizzle-kit push --verbose --strict", | ||
"db:migrate": "bun x drizzle-kit migrate", | ||
"db:check": "bun x drizzle-kit check", | ||
"db:studio": "bun x --bun drizzle-kit studio" | ||
}, | ||
"dependencies": { | ||
"@bogeychan/elysia-logger": "^0.1.6", | ||
"@elysiajs/eden": "^1.1.3", | ||
"@elysiajs/swagger": "^1.1.6", | ||
"@oslojs/crypto": "^1.0.1", | ||
"@oslojs/encoding": "^1.1.0", | ||
"@sinclair/typebox": "0.32.34", | ||
"arctic": "^2.3.3", | ||
"drizzle-orm": "^0.38.2", | ||
"drizzle-typebox": "0.1.1", | ||
"elysia": "^1.1.26", | ||
"nanoid": "^5.0.9", | ||
"postgres": "^3.4.5" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.9.4", | ||
"@types/bun": "^1.1.14", | ||
"@types/node": "^22.10.2", | ||
"drizzle-kit": "^0.30.1", | ||
"typescript": "^5.7.2" | ||
}, | ||
"overrides": { | ||
"@sinclair/typebox": "0.32.34" | ||
} | ||
} |
12 changes: 6 additions & 6 deletions
12
services/backend/public/.well-known/microsoft-identity-association.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"associatedApplications": [ | ||
{ | ||
"applicationId": "d947007a-bd3d-41fa-a027-f63346796c51" | ||
} | ||
] | ||
} | ||
"associatedApplications": [ | ||
{ | ||
"applicationId": "d947007a-bd3d-41fa-a027-f63346796c51" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
{ | ||
"compilerOptions": { | ||
"lib": [ | ||
"ESNext" | ||
], | ||
"module": "ESNext", | ||
"target": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"esModuleInterop": true, | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"allowSyntheticDefaultImports": true, | ||
"rootDir": "./src", | ||
"noEmit": true, | ||
"paths": { | ||
"$auth/*": [ "./src/auth/*" ], | ||
"$config/*": [ "./src/config/*" ], | ||
"$db/*": [ "./src/db/*" ], | ||
"$types/*": [ "./src/types/*" ], | ||
"$utils/*": [ "./src/utils/*" ], | ||
} | ||
}, | ||
"include": [ | ||
"src" | ||
] | ||
} | ||
"compilerOptions": { | ||
"lib": ["ESNext"], | ||
"module": "ESNext", | ||
"target": "ESNext", | ||
"moduleResolution": "Bundler", | ||
"esModuleInterop": true, | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"allowSyntheticDefaultImports": true, | ||
"rootDir": "./src", | ||
"noEmit": true, | ||
"paths": { | ||
"$auth/*": ["./src/auth/*"], | ||
"$config/*": ["./src/config/*"], | ||
"$db/*": ["./src/db/*"], | ||
"$types/*": ["./src/types/*"], | ||
"$utils/*": ["./src/utils/*"] | ||
} | ||
}, | ||
"include": ["src"] | ||
} |