Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
490d1b2
chore: react-router-dom 추가
fiivxyxxng Mar 10, 2025
95508ff
feat: Routes에 필요한 페이지들 추가
fiivxyxxng Mar 10, 2025
0230ebb
feat: 페이지별 Route 경로 설정
fiivxyxxng Mar 10, 2025
c8fe936
style: typo logo 이름 오타 수정 및 link 클래스 스타일 추가
fiivxyxxng Mar 10, 2025
1bf462a
feat: 랜딩페이지 migration
fiivxyxxng Mar 11, 2025
3f4299c
refactor: css module 적용 및 App 컴포넌트 위치 변경
fiivxyxxng Mar 11, 2025
b0beab2
feat: server api 구현
fiivxyxxng Mar 16, 2025
32e4f6e
chore: server 패키지 추가
fiivxyxxng Mar 16, 2025
9e3214c
chore: package-lock.json, node_modules 삭제 후 재설치
fiivxyxxng Mar 16, 2025
eb78556
refactor: 컴포넌트 확장자 변경
fiivxyxxng Mar 16, 2025
d766609
refactor: ProductListItem 컴포넌트 분리
fiivxyxxng Mar 16, 2025
50ecc59
refactor: 상수값 분리 및 img 태그 alt 속성 추가
fiivxyxxng Mar 16, 2025
77e1d25
refactor: Pagination useMemo 적용 및 getProducts 함수 파라미터 적용
fiivxyxxng Mar 16, 2025
5638e3b
feat: 프론트엔드 api getProducts 함수 수정 및 POST, PATCH, DELETE 함수 추가 구현
fiivxyxxng Mar 16, 2025
9619900
feat: 상품 등록 및 상품 상세 페이지 구현
fiivxyxxng Mar 16, 2025
443804d
style: 상품 기본 이미지 추가 및 input, textarea 관련 css 수정
fiivxyxxng Mar 16, 2025
db6cd3e
vite로 migration
fiivxyxxng Mar 18, 2025
43ab713
favicon 에러 수정
fiivxyxxng Mar 19, 2025
6fa81c7
feat: 상품 등록 및 유효성 검사, 상품 상세 페이지 이동 구현
fiivxyxxng Mar 19, 2025
0b8ed08
refactor: 프론트 및 백엔드 api 에러 일부 수정
fiivxyxxng Mar 19, 2025
7bc973b
refactor: backend 코드 분리
fiivxyxxng Mar 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 21 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
53 changes: 20 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,26 @@
# 판다마켓 스프린트 미션 5
# 판다마켓 스프린트 미션 6

React를 사용하여 구현하였습니다.

## 파일 구조

```bash
├── README.md
├── node_modules
├── package-lock.json
├── package.json
├── public
│   ├── favicon.ico
│   └── index.html
└── src
├── App.js
├── api
│   └── api.js
├── assets
│   └── images
│   ├── home
│   ├── icon
│   ├── logo
│   └── social
├── components
│   ├── BestProduct.css
│   ├── BestProduct.js
│   ├── Footer.css
│   ├── Footer.js
│   ├── Header.css
│   ├── Header.js
│   ├── Pagination.css
│   ├── Pagination.js
│   ├── ProductList.css
│   └── ProductList.js
├── index.js
└── styles
└── global.css

```

## 코드 리뷰 반영

- 컴포넌트 파일 확장자 .js -> .jsx 변경
-

## 변경사항

- 각 페이지별 컴포넌트 추가
- Main.js: 기본 렌더링 파일로 라우트 경로 설정
- 기존 App.js
- Productlist 컴포넌트 관련 props, state 부분 MarketPage.jsx로 이동
- Header, Outlet, Footer 컴포넌트로 경로에 해당하는 라우트로 이동 시 Outlet만 변경되도록 수정
- css module 적용
- 기존 global.css -> App.module.css로 변경
- color palette 추가
- Pagination
- useMemo 적용
33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'

export default [
{ ignores: ['dist'] },
{
files: ['**/*.{js,jsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...js.configs.recommended.rules,
...reactHooks.configs.recommended.rules,
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
]
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>판다마켓</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
1 change: 1 addition & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading