codestates / codestates/AllAboutMe
[๐Dev Log] ๊นํ์ผ 210827
- 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.