Skip to content

Commit fb5cce8

Browse files
authored
Merge pull request #83 from Open-Webtoon-Reader/staging
2 parents 6145f04 + 4c7f28c commit fb5cce8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2506
-6930
lines changed

.dockerignore

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
node_modules
2-
npm-debug.log
3-
pnpm-debug.log
4-
.DS_Store
5-
.git
6-
.gitignore
7-
dist
8-
.env
9-
.cache
10-
images
1+
node_modules/
2+
.git/
3+
dist/
4+
5+
.env*
6+
.flaskenv*
7+
!.env.project
8+
!.env.vault
9+
public_answers/

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ PREFIX="api/v1/"
33
DATABASE_URL=
44

55
# Security
6+
APP_SECRET=supersecret
67
ADMIN_KEY="admin"
78

9+
# First startup only
10+
ADMIN_USERNAME=admin
11+
ADMIN_EMAIL=[email protected]
12+
ADMIN_PASSWORD=[email protected]
13+
814
# S3
915
FILESYSTEM=local#local or s3
1016
S3_ENDPOINT=endpoint

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
FROM node:22-alpine
1+
FROM oven/bun:alpine
22

33
WORKDIR /app
44

5-
RUN apk add --no-cache openssl
6-
7-
COPY package*.json pnpm-lock.yaml ./
5+
COPY bun.lock ./
6+
COPY package.json ./
87
COPY tsconfig.json ./
98

10-
RUN npm install -g corepack@latest && corepack enable && pnpm install --frozen-lockfile
9+
RUN bun install --frozen-lockfile
1110

1211
COPY prisma ./prisma/
13-
RUN pnpm dlx prisma generate
12+
RUN bunx prisma generate
1413

1514
COPY . .
1615

1716
ENV NODE_ENV=production
1817

19-
RUN pnpm run build
18+
RUN bun run build
2019

2120
EXPOSE 4000
2221

23-
CMD pnpm dlx prisma migrate deploy && npx prisma db seed && pnpm run start:prod
22+
CMD bunx prisma migrate deploy && bunx prisma db seed && bun run start:prod

bun.lock

Lines changed: 1489 additions & 0 deletions
Large diffs are not rendered by default.

bunfig.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
bun = true

nest-cli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"plugins": [{
99
"name": "@nestjs/swagger",
1010
"options": {
11-
"dtoFileNameSuffix": [".dto.ts", ".entity.ts", ".response.ts"],
11+
"dtoFileNameSuffix": [".dto.ts", ".entity.ts", ".response.ts", ".payload.ts"],
1212
"introspectComments": true
1313
}
1414
}]

package.json

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,57 +5,55 @@
55
"private": true,
66
"license": "UNLICENSED",
77
"scripts": {
8-
"build": "nest build",
9-
"start": "nest start",
10-
"start:dev": "nest start --watch",
11-
"start:debug": "nest start --debug --watch",
12-
"start:prod": "node dist/src/app",
13-
"lint": "eslint . --fix"
8+
"build": "bun --bun nest build",
9+
"start": "bun --bun nest start",
10+
"start:dev": "bun --hot ./src/app.ts",
11+
"start:prod": "bun dist/src/app",
12+
"lint:fix": "eslint . --fix"
1413
},
1514
"dependencies": {
1615
"@fastify/helmet": "^13.0.1",
1716
"@fastify/static": "^8.1.1",
18-
"@nestjs/common": "^11.0.12",
19-
"@nestjs/config": "^4.0.1",
20-
"@nestjs/core": "^11.0.12",
21-
"@nestjs/platform-fastify": "^11.0.12",
22-
"@nestjs/platform-socket.io": "^11.0.12",
17+
"@nestjs/common": "^11.0.15",
18+
"@nestjs/config": "^4.0.2",
19+
"@nestjs/cli": "^11.0.6",
20+
"@nestjs/core": "^11.0.15",
21+
"@nestjs/jwt": "^11.0.0",
22+
"@nestjs/passport": "^11.0.5",
23+
"@nestjs/platform-fastify": "^11.0.15",
24+
"@nestjs/platform-socket.io": "^11.0.15",
2325
"@nestjs/schedule": "^5.0.1",
24-
"@nestjs/swagger": "^11.0.7",
26+
"@nestjs/swagger": "^11.1.1",
2527
"@nestjs/throttler": "^6.4.0",
26-
"@nestjs/websockets": "^11.0.12",
27-
"@prisma/client": "6.5.0",
28+
"@nestjs/websockets": "^11.0.15",
29+
"@prisma/client": "6.6.0",
2830
"axios": "^1.8.4",
2931
"class-transformer": "^0.5.1",
3032
"class-validator": "^0.14.1",
31-
"dotenv": "^16.4.7",
32-
"fastify": "5.2.1",
33+
"fastify": "5.2.2",
3334
"jsdom": "^26.0.0",
3435
"jszip": "^3.10.1",
3536
"minio": "^8.0.5",
36-
"reflect-metadata": "^0.2.2",
37-
"rxjs": "^7.8.2",
38-
"sharp": "^0.33.5",
37+
"passport-jwt": "^4.0.1",
38+
"sharp": "^0.34.1",
3939
"socket.io": "^4.8.1",
40-
"swagger-themes": "^1.4.3"
40+
"swagger-themes": "^1.4.3",
41+
"uuid": "^11.1.0"
4142
},
4243
"devDependencies": {
43-
"@nestjs/cli": "^11.0.5",
44-
"@nestjs/schematics": "^11.0.2",
45-
"@nestjs/testing": "^11.0.12",
44+
"@nestjs/schematics": "^11.0.5",
4645
"@stylistic/eslint-plugin": "^4.2.0",
46+
"@types/bun": "^1.2.9",
4747
"@types/jsdom": "^21.1.7",
48-
"@types/node": "^22.13.10",
49-
"@typescript-eslint/parser": "^8.27.0",
50-
"eslint": "^9.22.0",
51-
"prisma": "^6.5.0",
48+
"@types/node": "^22.14.0",
49+
"@types/passport-jwt": "^4.0.1",
50+
"@typescript-eslint/parser": "^8.29.1",
51+
"eslint": "^9.24.0",
52+
"prisma": "^6.6.0",
5253
"source-map-support": "^0.5.21",
53-
"ts-loader": "^9.5.2",
54-
"ts-node": "^10.9.2",
55-
"tsconfig-paths": "^4.2.0",
56-
"typescript": "^5.8.2"
54+
"typescript": "^5.8.3"
5755
},
5856
"prisma": {
59-
"seed": "ts-node prisma/seed.ts"
57+
"seed": "bun prisma/seed.ts"
6058
}
6159
}

0 commit comments

Comments
 (0)