-
Notifications
You must be signed in to change notification settings - Fork 18
[백은결] sprint6 #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
eungyeolbaek
wants to merge
7
commits into
codeit-sprint-fullstack:express-백은결
Choose a base branch
from
eungyeolbaek:express-백은결-sprint6
base: express-백은결
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
The head ref may contain hidden characters: "express-\uBC31\uC740\uACB0-sprint6"
Open
[백은결] sprint6 #18
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b7c92a8
chore: setup express server structure and routing
eungyeolbaek 5432009
refactor: clean up product API error handling
eungyeolbaek dd7c4be
feat: integrate MongoDB, add Product schema, and set up path aliases
eungyeolbaek 5d19ad8
refactor(mentor): 상수 오타 수정 및 설정 최적화
eungyeolbaek 0b98554
refactor(mentor): DB 연결 비동기 처리 및 환경변수 검증 개선
eungyeolbaek 6eb537c
refactor(mentor): 가상 ID 노출 해결, 유효성 검사 분리, PATCH 필터링 및 보안 옵션 적용
eungyeolbaek f1fbf23
feat: PostgreSQL 마이그레이션 및 자유게시판/댓글 API 구현 완료
eungyeolbaek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| node_modules/ | ||
| env/* | ||
| !env/.env.example | ||
| *.log | ||
| .DS_Store |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "printWidth": 80, | ||
| "bracketSpacing": true, | ||
| "trailingComma": "all", | ||
| "semi": true, | ||
| "singleQuote": true | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| NODE_ENV= | ||
| PORT= | ||
| DATABASE_URL= |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import js from '@eslint/js'; | ||
|
|
||
| export default [ | ||
| js.configs.recommended, | ||
| { | ||
| languageOptions: { | ||
| ecmaVersion: 2024, | ||
| sourceType: 'module', | ||
| globals: { | ||
| console: 'readonly', | ||
| process: 'readonly', | ||
| }, | ||
| }, | ||
| rules: { | ||
| 'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], | ||
| 'no-console': 'off', | ||
| 'prefer-const': 'error', | ||
| 'no-var': 'error', | ||
| semi: ['error', 'always'], | ||
| quotes: ['error', 'single'], | ||
| }, | ||
| }, | ||
| ]; |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
|
|
||
| /* !!! This is code generated by Prisma. Do not edit directly. !!! */ | ||
| /* eslint-disable */ | ||
| // biome-ignore-all lint: generated file | ||
| // @ts-nocheck | ||
| /* | ||
| * This file should be your main import to use Prisma-related types and utilities in a browser. | ||
| * Use it to get access to models, enums, and input types. | ||
| * | ||
| * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. | ||
| * See `client.ts` for the standard, server-side entry point. | ||
| * | ||
| * 🟢 You can import this file directly. | ||
| */ | ||
|
|
||
| import * as Prisma from './internal/prismaNamespaceBrowser.ts' | ||
| export { Prisma } | ||
| export * as $Enums from './enums.ts' | ||
| export * from './enums.ts'; | ||
| /** | ||
| * Model Product | ||
| * | ||
| */ | ||
| export type Product = Prisma.ProductModel | ||
| /** | ||
| * Model Article | ||
| * | ||
| */ | ||
| export type Article = Prisma.ArticleModel | ||
| /** | ||
| * Model Comment | ||
| * | ||
| */ | ||
| export type Comment = Prisma.CommentModel |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
|
|
||
| /* !!! This is code generated by Prisma. Do not edit directly. !!! */ | ||
| /* eslint-disable */ | ||
| // biome-ignore-all lint: generated file | ||
| // @ts-nocheck | ||
| /* | ||
| * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. | ||
| * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. | ||
| * | ||
| * 🟢 You can import this file directly. | ||
| */ | ||
|
|
||
| import * as process from 'node:process' | ||
| import * as path from 'node:path' | ||
| import { fileURLToPath } from 'node:url' | ||
| globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) | ||
|
|
||
| import * as runtime from "@prisma/client/runtime/client" | ||
| import * as $Enums from "./enums.ts" | ||
| import * as $Class from "./internal/class.ts" | ||
| import * as Prisma from "./internal/prismaNamespace.ts" | ||
|
|
||
| export * as $Enums from './enums.ts' | ||
| export * from "./enums.ts" | ||
| /** | ||
| * ## Prisma Client | ||
| * | ||
| * Type-safe database client for TypeScript | ||
| * @example | ||
| * ``` | ||
| * const prisma = new PrismaClient() | ||
| * // Fetch zero or more Products | ||
| * const products = await prisma.product.findMany() | ||
| * ``` | ||
| * | ||
| * Read more in our [docs](https://pris.ly/d/client). | ||
| */ | ||
| export const PrismaClient = $Class.getPrismaClientClass() | ||
| export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs> | ||
| export { Prisma } | ||
|
|
||
| /** | ||
| * Model Product | ||
| * | ||
| */ | ||
| export type Product = Prisma.ProductModel | ||
| /** | ||
| * Model Article | ||
| * | ||
| */ | ||
| export type Article = Prisma.ArticleModel | ||
| /** | ||
| * Model Comment | ||
| * | ||
| */ | ||
| export type Comment = Prisma.CommentModel | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[개선 권장⚠️ ]
generated/폴더는 일반적으로 Git에 커밋하지 않습니다.이유
prisma generate명령으로 언제든 재생성 가능권장 방법
1.
.gitignore에 추가:2.
package.json에 postinstall 스크립트 추가:{ "scripts": { "postinstall": "prisma generate" } }이렇게 하면
npm install실행 시 자동으로 Prisma Client가 생성됩니다.3. 이미 커밋된 파일 제거:
git rm -r --cached generated/ git commit -m "chore: remove generated files from git"