codestates / codestates/withpuppy

[πŸ“Œ To Do] μœ€νƒœμ„­ / 2021-12-16

Open
#151 0 comments 0 reactions 0 assignees View on GitHub
todo
Dominant language
JavaScript
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Description

## βœ”οΈ ν•΄μ•Ό ν•  일 리슀트

μ’‹μ•„μš” κΈ°λŠ₯ κ΅¬ν˜„ TODO

User 1 β†’ (Follow) User 2


UserFollower

Follower(ν•˜λŠ” μ‚¬λžŒ) | User(λ°›λŠ” μ‚¬λžŒ)
-- | --
λ―Έν‚€ | μŠ€νŒŒμ΄λ”λ§¨
마우슀 | μŠ€νŒŒμ΄λ”λ§¨

λ‚˜μ˜ μ’‹μ•„μš” μˆ˜λŠ” μ•ˆλ‹€.


User - likes_count


λˆ„κ°€ λ‚˜λ₯Ό μ’‹μ•„μš”ν•œμ§€λŠ” λͺ¨λ₯Έλ‹€.


μŠ€ν† λ¦¬

  1. ν•€ 마컀λ₯Ό λˆŒλ €λ‹€.

    1. κΈ°μ‘΄ μ’‹μ•„μš” 정보λ₯Ό κ°€μ Έμ™€μ•Όν•œλ‹€.

    2. μ‚¬μš©μž : μŠ€νŒŒμ΄λ”λ§¨

    3. ν•€μƒλŒ€ : λ―Έν‚€

    4. if λ‚΄κ°€ 기쑴에 λˆŒλ €μ—ˆλ‹€λ©΄

      1. SELECT * FROM UserFollower Where Follower=λ―Έν‚€ User=μŠ€νŒŒμ΄λ”λ§¨ β†’ κ²°κ³Ό 쑴재

      2. λ³„ν‘œκ°€ λˆŒλ €μžˆλ‹€.



    5. else

      1. SELECT * FROM UserFollower Where Follower=λ―Έν‚€ User=μŠ€νŒŒμ΄λ”λ§¨ β†’ κ²°κ³Ό μ—†μŒ

      2. λ³„ν‘œκ°€ μ•ˆλˆŒλ €μžˆλ‹€.





  2. μƒˆλ‘œκ³ μΉ¨ : 1번과 동일

  3. λ³„ν‘œλ₯Ό λˆŒλ €λ‹€.

    1. 기쑴에 μ’‹μ•„μš”κ°€ λˆŒλ €μžˆμ—ˆμœΌλ©΄ μ’‹μ•„μš”κ°€ μ·¨μ†Œλœλ‹€.

      1. λ³„ν‘œ μΉ΄μš΄ν„° - 1



    2. 기쑴에 μ’‹μ•„μš”κ°€ μ•ˆ λˆŒλ €μžˆμ—ˆμœΌλ©΄ μ’‹μ•„μš”κ°€ λΌμ•Όν•œλ‹€.

      1. λ³„ν‘œ μΉ΄μš΄ν„° + 1






API λ””μžμΈ



  • /like GET β†’ 기쑴에 μ’‹μ•„μš”λ₯Ό ν–ˆλŠ”κ°€

  • /like POST β†’ μ’‹μ•„μš” λˆ„λ¦„

  • /like/cancel POST β†’ μ’‹μ•„μš” μΊ”μŠ¬

    • /like DELETE β†’ μ’‹μ•„μš” μΊ”μŠ¬




개발




  • μ΄ˆμ›”μ  λͺ©ν‘œ : μ „λΆ€ 개발


λ‚΄ μƒνƒœ


둜그인 κΈ°λŠ₯ μž‘λ™ μ—¬λΆ€ 뢈λͺ…ν™•


μœ μ € ν˜ΈμΆœλΆ€κ°€ μ—°λ™λ˜μ–΄ μžˆμ§€ μ•ŠμŒ


μ’‹μ•„μš”λŠ” λ§ˆμ§€λ§‰ μ•‘μ…˜ !!

- μœ μ € μž…μž₯μ—μ„œ 둜그인 ν•˜κ³  ν•€ λˆ„λ₯΄κ³  μ˜€λ²„λ ˆμ΄ νŒμ—…κ³Ό λ™μ‹œμ— ν”„λ‘œν•„ μΉ΄λ“œμ—μ„œ μ΅œμ’…μ μœΌλ‘œ μ•‘μ…˜ ν•˜λŠ” 건데 κ·Έ μ „ 단계가 κ΅¬ν˜„μ΄ 어디에 λ˜μ–΄ μžˆλŠ”μ§€ λ‚΄ μ‹œμ•Όμ—μ„œ 보이지가 μ•ŠμŒ

API 섀계 μ• λ§€ν•˜κ³  연동도 μ• λ§€ν•˜λ‹€

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named; first map the existing login, user, pin overlay, profile-card, and API entry points described in the issue. Clarify the API design and UserFollower data flow before starting, then verify that the like state and counter persist correctly for both like and cancel actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, database, full-stack
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.