codestates / codestates/AllAboutMe

[๐Ÿ“šDev Log] ๊น€ํƒœ์ผ 210827

Open
#151 0 comments 0 reactions 1 assignee Claimed by @james-taeil View on GitHub
โœ๏ธ DevLog
Dominant language
JavaScript
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### ์˜ค๋Š˜์€ ์–ด๋–ป๊ฒŒ ํ”„๋กœ์ ํŠธ์— ๊ธฐ์—ฌํ–ˆ๋‚˜์š”?
- POST ์š”์ฒญ ์‹œ signup ๊ตฌํ˜„
- signup DB์— ์ €์žฅ ํ™•์ธ
- test List ๊ธฐ๋Šฅ ๊ตฌํ˜„
- Test List ์ค‘ ์›ํ•˜๋Š” TEST์˜ ์ „์ฒด Select ๊ฐ’ ๋กœ์ง ๊ตฌํ˜„

### ์˜ค๋Š˜์˜ ํ”„๋กœ์ ํŠธ์—์„œ ํž˜๋“  ์ ์€ ๋ฌด์—‡์ธ๊ฐ€์š”?
- DB, Models ์—์„œ ๊ฐ€์ ธ์˜ค๋Š” ๊ฐ’์„ ์ •ํ™•ํžˆ ์•Œ์•„์•ผ ํ•œ๋‹ค๊ณ  ์ƒ๊ฐํ•œ๋‹ค.
- ๊ธฐ๋Šฅ ํ•˜๋‚˜๊ฐ€ ๊ตฌํ˜„ ์•ˆ๋˜๊ธฐ ์‹œ์ž‘ํ•˜์ž ๋„ˆ๋ฌด ๋ง‰ํ˜”์—ˆ๋‹ค.
- createAt ๊ฐ’์„ ์›ํ•˜๋Š” ์˜ค๋ฅ˜๋ฅผ ๋งŒ๋‚ฌ๋‹ค. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ attributes๋ฅผ ์‚ฌ์šฉํ•ด์„œ ์›ํ•˜๋Š” ์ปฌ๋Ÿผ๋งŒ ๊ฐ€์ ธ์˜ค๋Š” ๊ฒƒ

// ์ฝ”๋“œ๋ฅผ ์ฒจ๋ถ€ํ•ด๋„ ์ข‹์Šต๋‹ˆ๋‹ค.
```js
select: async (req, res) => {
const testParamsId = req.params.id;

const result = await select.findAll({
attributes: ['id', 'name', 'image'],
where:{testId : testParamsId},
})

return res.status(200).send({ "data" : {"test" : result}, message: 'ok'});
```

### ๋‚ด์ผ์€ ํ”„๋กœ์ ํŠธ์— ๊ธฐ์—ฌํ•˜๊ธฐ ์œ„ํ•ด ๋ฌด์—‡์„ ํ•ด์•ผ ํ•˜๋‚˜์š”?
[ ] AddFavorite ๊ตฌํ˜„
[ ] ํŒ€ ํ”„๋กœ์ ํŠธ์— ์ข€ ๋” ๊ธฐ์—ฌํ•  ๊ฒƒ

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.