Skip to content

Commit 5814b0a

Browse files
authored
Merge pull request #5 from CS3219-AY2425S1/PEER-231-form-feedback-and-validation
PEER-231 Form Feedback and Validation
2 parents 8352c66 + f9df765 commit 5814b0a

Some content is hidden

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

45 files changed

+1544
-393
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"eslint:recommended",
44
"plugin:@typescript-eslint/recommended",
55
"prettier",
6-
"plugin:tailwindcss/recommended"
6+
"plugin:tailwindcss/recommended",
7+
"plugin:@tanstack/eslint-plugin-query/recommended"
78
// "plugin:@tanstack/eslint-plugin-query"
89
],
910
"parserOptions": {

backend/collaboration/tsconfig.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
"module": "commonjs", /* Specify what module code is generated. */
2626
"rootDir": "./src", /* Specify the root folder within your source files. */
2727
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
28-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
29-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
28+
"baseUrl": ".", /* Specify the base directory to resolve non-relative module names. */
29+
"paths": {
30+
"@/*": ["./src/*"]
31+
}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3032
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
3133
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
3234
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
@@ -100,5 +102,9 @@
100102
},
101103
"exclude": [
102104
"drizzle.*.*ts"
103-
]
105+
],
106+
"ts-node": {
107+
"swc": true,
108+
"require": ["tsconfig-paths/register"]
109+
}
104110
}

backend/question/tsconfig.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
"module": "commonjs", /* Specify what module code is generated. */
2626
"rootDir": "./src", /* Specify the root folder within your source files. */
2727
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
28-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
29-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
28+
"baseUrl": ".", /* Specify the base directory to resolve non-relative module names. */
29+
"paths": {
30+
"@/*": ["./src/*"]
31+
}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3032
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
3133
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
3234
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
@@ -100,5 +102,9 @@
100102
},
101103
"exclude": [
102104
"drizzle.*.*ts"
103-
]
105+
],
106+
"ts-node": {
107+
"swc": true,
108+
"require": ["tsconfig-paths/register"]
109+
}
104110
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:lts-alpine AS build
2+
WORKDIR /data/user-express
3+
COPY package*.json ./
4+
RUN npm install
5+
COPY . .
6+
RUN npm run build
7+
8+
FROM node:lts-alpine AS production
9+
WORKDIR /data/user-express
10+
COPY --from=build /data/user-express/package*.json ./
11+
RUN npm ci --omit=dev
12+
COPY --from=build --chown=node:node /data/user-express/dist ./dist
13+
EXPOSE 8001
14+
ENTRYPOINT ["node", "dist/index.js"]

backend/template/tsconfig.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
"module": "commonjs", /* Specify what module code is generated. */
2626
"rootDir": "./src", /* Specify the root folder within your source files. */
2727
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
28-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
29-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
28+
"baseUrl": ".", /* Specify the base directory to resolve non-relative module names. */
29+
"paths": {
30+
"@/*": ["./src/*"]
31+
}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3032
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
3133
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
3234
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
@@ -100,5 +102,9 @@
100102
},
101103
"exclude": [
102104
"drizzle.*.*ts"
103-
]
105+
],
106+
"ts-node": {
107+
"swc": true,
108+
"require": ["tsconfig-paths/register"]
109+
}
104110
}

frontend/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ node_modules
1111
dist
1212
dist-ssr
1313
*.local
14+
*.tsbuildinfo
1415

1516
# Editor directories and files
1617
.vscode/*

0 commit comments

Comments
 (0)