Skip to content

Commit

Permalink
Merge pull request #5 from paengdal/express-조형민-sprint7
Browse files Browse the repository at this point in the history
[조형민] sprint7
  • Loading branch information
seobew authored Jan 13, 2025
2 parents 0f026f6 + 9fee7f4 commit fc74f5e
Show file tree
Hide file tree
Showing 23 changed files with 2,274 additions and 531 deletions.
5 changes: 2 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
DATABASE_URL="mongodb+srv://paengdal:[email protected]/panda-market?retryWrites=true&w=majority&appName=Cluster0"
# BACKEND_API_URL="https://four-sprint-mission-fe-1.onrender.com"
PORT=5500
DATABASE_URL="postgresql://hyungmincho:112211@localhost:5432/panda?schema=public"
PORT=3000
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
node_modules
.env
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.20.2
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 조형민의 판다마켓 스프린트 미션 백엔드 제출 공간입니다. 😁

**스프린트 미션 6**
**스프린트 미션 7**
33 changes: 33 additions & 0 deletions http/articles.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
###
POST http://localhost:3000/articles
Content-Type: application/json

{
"title":"갤럭시 S40",
"content":"쌈송에서 만든 최신 폰"
}

###
PATCH http://localhost:3000/articles/0456b46f-7a18-4211-b7a1-2216f84cc2cb
Content-Type: application/json

{
"content":"쌈송에서 만든 망폰"
}

###
GET http://localhost:3000/articles/0456b46f-7a18-4211-b7a1-2216f84cc2cb

###
GET http://localhost:3000/articles

###
POST http://localhost:3000/articles/0456b46f-7a18-4211-b7a1-2216f84cc2cb/comments
Content-Type: application/json

{
"content" : "이건 삭제할 댓글입니다."
}

###
DELETE http://localhost:3000/comments/cdd15137-d60a-4f58-8b71-398d802cdaa7
16 changes: 16 additions & 0 deletions http/comments.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

PATCH http://localhost:3000/comments/492cc17e-ae41-4156-9a33-748f76adb7c4
Content-Type: application/json

{
"content":"댓글 수정 테스트"
}

###
GET http://localhost:3000/products/comments

###
GET http://localhost:3000/products/comments?limit=3&cursor=8cbf2c41-8974-412e-8d43-98d4020a7217

###
GET http://localhost:3000/ariticles/comments
41 changes: 41 additions & 0 deletions http/products.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
GET http://localhost:3000/products

###
GET http://localhost:3000/products?sort=recent&keyword=갤럭시

###
GET http://localhost:3000/products/10f12b65-20f5-43d9-860e-faf4890e2a9e

###
POST http://localhost:3000/products
Content-Type: application/json

{
"name":"갤럭시 S40",
"description":"쌈송에서 만든 최신 폰",
"price":990000,
"tags":["갤럭시", "삼성"]
}

###
PATCH http://localhost:3000/products/0486722d-02f8-4a40-bdb0-0bfb2dfaeb70
Content-Type: application/json

{
"name":"갤럭시 S50",
"price":5400
}

###
DELETE http://localhost:3000/products/b833f160-3ae9-4c23-94c5-f44fcdc73ccc

###

POST http://localhost:3000/products/10f12b65-20f5-43d9-860e-faf4890e2a9e/comments
Content-Type: application/json

{
"content" : "이게 가장 새로운 댓글"
}


29 changes: 0 additions & 29 deletions models/Product.js

This file was deleted.

Loading

0 comments on commit fc74f5e

Please sign in to comment.