[TIL] Toy Project Day 1 - Planning

03/27/23

ยท

2 min read

[TIL] Toy Project  Day 1 - Planning

๐Ÿฝ๏ธ Hidden Gem (์ˆจ๊ฒจ์ง„ ๋‚˜์˜ ๋ง›์ง‘ ๊ณต์œ  ์›น์‚ฌ์ดํŠธ)

Hidden Gem์€ ์ž์‹ ๋งŒ์ด ์•Œ๊ณ  ์žˆ๋Š” ์ˆจ๊ฒจ์ง„ ๋ง›์ง‘์„ ๋œปํ•ฉ๋‹ˆ๋‹ค.

์œ ์ €๋Š” ์ž์‹ ์˜ hidden gem์— ๋Œ€ํ•œ ์ •๋ณด๊ฐ€ ๋‹ด๊ธด URL์„ ์ž…๋ ฅํ•˜์—ฌ ์‚ฌ๋žŒ๋“ค๊ณผ ๊ณต์œ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
์œ ์ €๋Š” ๋‹ค๋ฅธ ์œ ์ €๋“ค์˜ hidden gems๋ฅผ ์ž์‹ ๋งŒ์˜ ๊ณต๊ฐ„์— ์ €์žฅํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Wireframe

Page 1

Page 2

API

FeaturesMETHODURLRequestResponse
๊ฒŒ์‹œ๊ธ€ ์ž‘์„ฑPOST/api/posts{โ€˜urlโ€™: url, โ€˜starโ€™: star, โ€˜commentโ€™: comment}{ data: [ { url: โ€˜#โ€™, comment: โ€˜์ธ์ƒ ๋ง›์ง‘โ€™, star: 5 }] }
ํšŒ์› ๊ฐ€์ž…POST/api/register{โ€˜user_idโ€™: user_id, โ€˜passwordโ€™: password, โ€˜nicknameโ€™: nickname}{ data: [ jwtToken ] }
๋กœ๊ทธ์ธPOST/api/login{โ€˜user_idโ€™: user_id, โ€˜passwordโ€™: password}{ data: [ jwtToken ] }
๋ง›์ง‘ ๋ฆฌ์ŠคํŠธ ๋ชฉ๋ก ์ „์ฒด ์กฐํšŒGET/api/posts๋ฉ”์ธ ํŽ˜์ด์ง€ reload์‹œ{ data: [ { id: 1, name: โ€˜๊น€๋ฐฅ์ฒœ๊ตญโ€™, url: โ€˜#โ€™, img: โ€˜#โ€™, address: โ€˜์„œ์šธํŠน๋ณ„์‹œ โ€ฆโ€™, comment: โ€˜์ธ์ƒ ๋ง›์ง‘โ€™, star: 5, like: 15 }, {โ€ฆ}, {โ€ฆ}, โ€ฆ] }
๋‚˜์˜ ๋ง›์ง‘ ๋ชฉ๋ก ์กฐํšŒGET/api/mysave/:user_idquery={nickname}{ data: [ { id: 1, name: โ€˜๊น€๋ฐฅ์ฒœ๊ตญโ€™, url: โ€˜#โ€™, img: โ€˜#โ€™, address: โ€˜์„œ์šธํŠน๋ณ„์‹œ โ€ฆโ€™, comment: โ€˜์ธ์ƒ ๋ง›์ง‘โ€™, star: 5, like: 15, saved: True }, {โ€ฆ}, {โ€ฆ}, โ€ฆ] }
๋ง›์ง‘ ์ข‹์•„์š” ๋ˆ„๋ฅด๊ธฐPUT/api/posts{โ€˜nicknameโ€™: nickname, โ€˜starโ€™: 1}{ data: [ { nickname: โ€˜nickโ€™, comment: โ€˜์ธ์ƒ ๋ง›์ง‘โ€™, star: 1 }, {โ€ฆ}, {โ€ฆ}] }
๋ง›์ง‘ ๊ฒŒ์‹œ๋ฌผ ์‚ญ์ œํ•˜๊ธฐDELETE/api/posts
ย