Skip to content

Commit 941cebc

Browse files
Merge pull request #345 from aXenDeveloper/deployment/beta
perf!: Prepare for deployment RC beta version
2 parents 40985c7 + ed55d1a commit 941cebc

File tree

501 files changed

+20420
-9176
lines changed

Some content is hidden

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

501 files changed

+20420
-9176
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: pnpm/action-setup@v2
2525
name: Install pnpm
2626
with:
27-
version: 8
27+
version: 9
2828
run_install: false
2929

3030
- name: Install dependencies

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: pnpm/action-setup@v2
2525
name: Install pnpm
2626
with:
27-
version: 8
27+
version: 9
2828
run_install: false
2929

3030
- name: Install dependencies

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
22
.env
33
docker
4-
DRAFT.md
54
.turbo

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"Codegen",
55
"hljs",
66
"hookform",
7+
"ilike",
78
"lowlight",
89
"lucide",
910
"nestjs",

backend/.eslintignore

-3
This file was deleted.

backend/.eslintrc

-73
This file was deleted.

backend/.eslintrc.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
tsconfigRootDir: __dirname,
6+
sourceType: 'module',
7+
},
8+
plugins: ['@typescript-eslint/eslint-plugin'],
9+
extends: [
10+
'plugin:@typescript-eslint/recommended',
11+
'plugin:prettier/recommended',
12+
],
13+
root: true,
14+
env: {
15+
node: true,
16+
jest: true,
17+
},
18+
ignorePatterns: ['.eslintrc.js'],
19+
rules: {
20+
'@typescript-eslint/interface-name-prefix': 'off',
21+
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/explicit-module-boundary-types': 'off',
23+
'@typescript-eslint/no-explicit-any': 'off',
24+
},
25+
};

backend/.gitignore

+11-8
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,20 @@ lerna-debug.log*
2828
*.sublime-workspace
2929

3030
# IDE - VSCode
31-
.env
3231
.vscode/*
3332
!.vscode/settings.json
3433
!.vscode/tasks.json
3534
!.vscode/launch.json
3635
!.vscode/extensions.json
3736

38-
# Static files
39-
uploads/*
40-
!uploads/index.html
41-
temp/*
42-
!temp/index.html
43-
public/*
44-
!public/index.html
37+
38+
# Others
39+
.env
40+
41+
/uploads/public/*
42+
/uploads/private/*
43+
/uploads/temp/*
44+
!/uploads/index.html
45+
!/uploads/public/index.html
46+
!/uploads/private/index.html
47+
!/uploads/temp/index.html

backend/Dockerfile

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
FROM node:20-alpine AS base
2-
3-
# Install pnpm
4-
ENV PNPM_HOME="/pnpm"
5-
ENV PATH="$PNPM_HOME:$PATH"
6-
RUN corepack enable
2+
RUN npm i -g pnpm
73

84
# Install dependencies
95
FROM base AS deps
@@ -16,16 +12,8 @@ FROM base AS builder
1612
WORKDIR /app
1713
COPY --from=deps /app/node_modules ./node_modules
1814
COPY . .
19-
2015
RUN pnpm build
2116

22-
# Run the app
2317
EXPOSE 8080
24-
2518
ENV PORT 8080
26-
# set hostname to localhost
27-
ENV HOSTNAME "0.0.0.0"
28-
29-
# server.js is created by next build from the standalone output
30-
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
31-
CMD ["npm", "run", "start:prod"]
19+
ENV HOSTNAME "0.0.0.0"

backend/config/configuration.ts

-38
This file was deleted.

backend/config/get-config-file.ts

-59
This file was deleted.

backend/drizzle.config.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
import { DATABASE_ENVS } from "@/database/client";
12
import { defineConfig } from "drizzle-kit";
23

3-
import { DATABASE_ENVS } from "./plugins/database/client";
4-
54
export default defineConfig({
65
dialect: "postgresql",
76
dbCredentials: DATABASE_ENVS,
8-
schema: "./plugins/**/database/schema/*.ts"
7+
schema: "./src/plugins/**/database/schema/*.ts"
98
});

backend/functions/config/default-config-data.ts

-22
This file was deleted.

backend/functions/seo.ts

-9
This file was deleted.

backend/nest-cli.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"$schema": "https://json.schemastore.org/nest-cli",
33
"collection": "@nestjs/schematics",
4-
"sourceRoot": ".",
4+
"sourceRoot": "src",
55
"compilerOptions": {
6-
"deleteOutDir": true
6+
"deleteOutDir": true,
7+
"builder": "swc",
8+
"typeCheck": true
79
}
810
}

0 commit comments

Comments
 (0)