Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
85 changes: 85 additions & 0 deletions .http
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
POST https://panda-market-api.vercel.app/auth/signUp
Content-Type: application/json

{
"email": "kde040508@lmail.com",
"nickname": "김다은",
"password": "qwer1234",
"passwordConfirmation": "qwer1234"
}

###

POST https://panda-market-api.vercel.app/auth/signIn
Content-Type: application/json

{
"email": "kde040508@gmail.com",
"password": "qwer1234"
}

###

GET https://panda-market-api.vercel.app/products?page=1&pageSize=10&orderBy=recent

###

GET https://panda-market-api.vercel.app/products/1

###
POST https://panda-market-api.vercel.app/products/3/comments
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAxNCwic2NvcGUiOiJhY2Nlc3MiLCJpYXQiOjE3NDcwOTkzMzcsImV4cCI6MTc0NzEwMTEzNywiaXNzIjoic3AtcGFuZGEtbWFya2V0In0.E583TAaOO27xvOftSkKubO91K6GV2tuaexrcx6rA9to

{
"content": "멋져요"
}

###
GET https://panda-market-api.vercel.app/products/3/comments?limit=5

###
POST https://panda-market-api.vercel.app/products
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAxNCwic2NvcGUiOiJhY2Nlc3MiLCJpYXQiOjE3NDcwMjUyNzAsImV4cCI6MTc0NzAyNzA3MCwiaXNzIjoic3AtcGFuZGEtbWFya2V0In0.byfXtlqgr0Fh3b5E2vNWadIFP2t42Yvsq1JCFaWVg6Q

{
"images": [
"https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/1014/1746780352164/food.png"
],
"tags": [
"맛나겟쥬?", "내가 팔아서 더 비쌈"
],
"price": 10000,
"description": "진짜 맛있습니다. 드셔보셔요",
"name": "유부 우동 컵라면"
}

###
POST https://panda-market-api.vercel.app/products/5/favorite
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAxNCwic2NvcGUiOiJhY2Nlc3MiLCJpYXQiOjE3NDc1NzYzMzgsImV4cCI6MTc0NzU3ODEzOCwiaXNzIjoic3AtcGFuZGEtbWFya2V0In0.Q7-nN9y0qFdlhZmfWXsGXEmDVnf3Vne3ws_D0cIoi-A

###
DELETE https://panda-market-api.vercel.app/products/5/favorite
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAxNCwic2NvcGUiOiJhY2Nlc3MiLCJpYXQiOjE3NDc1Nzk0ODksImV4cCI6MTc0NzU4MTI4OSwiaXNzIjoic3AtcGFuZGEtbWFya2V0In0.VBrK8VWQCSKBn74dYUB38EZmhvGkHu1dXrEDFdNxpeY

### 상품 삭제
DELETE https://panda-market-api.vercel.app/products/789
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAxNCwic2NvcGUiOiJhY2Nlc3MiLCJpYXQiOjE3NDcwMTI4NDcsImV4cCI6MTc0NzAxNDY0NywiaXNzIjoic3AtcGFuZGEtbWFya2V0In0.HaxBhbWUmoLfljWwovZMIiFiuQFtpqRHZEmtPxZ-nik

### 상품 수정
PATCH https://panda-market-api.vercel.app/products/836
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAxNCwic2NvcGUiOiJhY2Nlc3MiLCJpYXQiOjE3NDcwMjUyNzAsImV4cCI6MTc0NzAyNzA3MCwiaXNzIjoic3AtcGFuZGEtbWFya2V0In0.byfXtlqgr0Fh3b5E2vNWadIFP2t42Yvsq1JCFaWVg6Q

{
"images": [
"https://sprint-fe-project.s3.ap-northeast-2.amazonaws.com/Sprint_Mission/user/1014/1746780352164/food.png"
],
"tags": [
"맛나겟쥬?", "내가 팔아서 더 비쌈"
],
"price": 20000,
"description": "드셔보셔요",
"name": "컵라면"
}
14 changes: 14 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});

const eslintConfig = [...compat.extends("next/core-web-vitals")];

export default eslintConfig;
7 changes: 7 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}
}
8 changes: 8 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ["localhost", "sprint-fe-project.s3.ap-northeast-2.amazonaws.com"],
},
};

export default nextConfig;
Loading