Bibi's DevLog ๐Ÿค“๐ŸŽ

Git Branch ํ™œ์šฉ! / mongoDB ์›๊ฒฉ์ €์žฅ(AWS) / ๊ด€๋ฆฌ์ž์šฉ DB CRUD - Create API ์™„์„ฑ ๋ฐ category๋ฐ์ดํ„ฐ ์‚ฝ์ž… ๋ณธ๋ฌธ

Projects/(ํŒ€)MyPick31

Git Branch ํ™œ์šฉ! / mongoDB ์›๊ฒฉ์ €์žฅ(AWS) / ๊ด€๋ฆฌ์ž์šฉ DB CRUD - Create API ์™„์„ฑ ๋ฐ category๋ฐ์ดํ„ฐ ์‚ฝ์ž…

๋น„๋น„ bibi 2020. 10. 8. 19:30

๐Ÿ‘พToday's Debuging

- $ is not defined / jQuery is not defined ์—๋Ÿฌ

: ์•„๋ž˜์˜ ํ•ด๊ฒฐ๋ฒ•์„ ์‚ฌ์šฉํ–ˆ๋”๋‹ˆ ํ•ด๊ฒฐ๋˜์—ˆ๋‹ค. ์ด๋ ‡๊ฒŒ ํ•ด๊ฒฐ๋˜๋Š” ๊ฒƒ๋„ ์‹ ๊ธฐํ•˜๋‹ค'0'

blog.naver.com/PostView.nhn?blogId=blacklotuz&logNo=221371811978

 

uncaught referenceerror $ is not defined

์ œ์ด์ฟผ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋ฉด ๊ฐ„ํ˜น ์ด๋Ÿฐ ์—๋Ÿฌ๊ฐ€ ๋‚˜์˜ฌ๋–„ ์žˆ๋‹ค. uncaught referenceerror $ is not defined ํ•„์ž...

blog.naver.com

- ๊ธฐํƒ€ ์ฝ˜์†”์—์„œ ๋ฐœ์ƒํ•œ ์—๋Ÿฌ๋“ค

์ฝ˜์†”์ฐฝ์— ์˜ค๋ฅ˜๊ฐ€ ๋œจ์ง€๋„ ์•Š๋Š”๋ฐ ๊ตฌํ˜„ํ•œ ๊ธฐ๋Šฅ์ด ๋™์ž‘ํ•˜์ง€ ์•Š์„ ๋•Œ..
-> Juni๊ฐ€ ์•Œ๋ ค์ฃผ์—ˆ๋‹ค. (ํฌ๋กฌ ๊ธฐ์ค€) ctrl shift delete๋ฅผ ๋ˆ„๋ฅด๊ณ  ๋ธŒ๋ผ์šฐ์ €์— ์ €์žฅ๋œ ์ฟ ํ‚ค๋ฅผ ๋ชจ๋‘ ์‚ญ์ œํ•œ ๋’ค, ๋‹ค์‹œ ์ฐฝ์„ ๋„์šฐ๊ณ  ์‹คํ–‰ํ•ด๋ณด๋‹ˆ ๋Œ€๋ถ€๋ถ„ ํ•ด๊ฒฐ! 

 

 

๐Ÿ‡Today's Progress

- Git ํ™œ์šฉ๋ฒ• ์Šต๋“! - choose a branch to merge into (๋ธŒ๋žœ์น˜๋ช…);

(ํ‘์—ญ์‚ฌ)

-> ๊ฐ ๋ธŒ๋žœ์น˜์— ๋งˆ์Šคํ„ฐ ๋ฐ์ดํ„ฐ ๊ฐ€์ ธ์˜ฌ ์ค„ ๋ชฐ๋ผ์„œ ๋งค๋ฒˆ ๋งˆ์Šคํ„ฐ์—์„œ merged๋œ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ฌ ๋•Œ ๋งค๋ฒˆ ๋ธŒ๋žœ์น˜๋ฅผ ๋งŒ๋“ค๋˜ ์‹œ์ ˆ..ใ…‹ใ…‹ใ…‹ใ…œใ…œ

-> ํ•ด๊ฒฐ๋ฒ• : "Choose a branch to merge into (๋ธŒ๋žœ์น˜๋ช…)" ์ด๋ผ๋Š”
๋งจ ์•„๋ž˜ ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ master๋ฅผ ๋ˆ„๋ฅด๊ณ  ๋‚ด ๋ธŒ๋žœ์น˜๋กœ mergeํ•˜๋ฉด ํ•ด๊ฒฐ๋˜๋Š” ๊ฒƒ์ด์—ˆ๋‹ค.

ํ˜ผ์ž์„œ ๋ฌธ์ œํ•ด๊ฒฐ ์„ฑ๊ณต! ์˜์–ด ์—ด์‹ฌํžˆ ํ•ด์„ํ•ด์„œ git 100% ํ™œ์šฉํ•˜์ž..:D
์ด๊ฑธ๋กœ ํ˜‘์—…์ด 2๋ฐฐ๋Š” ํŽธํ•ด์กŒ๋‹ค! ์ตœ๊ณ ์ตœ๊ณ ~

 

- mongoDB - AWS mongoDB ์›๊ฒฉํ™œ์šฉ

'๋ฉ์ด์™€ ๋‚˜'๋•Œ ๊ตฌ๋งคํ•ด ๋’€๋˜ AWS mongoDB๋ฅผ ํ…Œ์ŠคํŠธ์šฉ์œผ๋กœ Juni์™€ ํ•จ๊ป˜ ์‚ฌ์šฉํ•ด ๋ณด์•˜๋‹ค.
Robo3T๋ฅผ ํ†ตํ•ด ๋‚ด ์ปดํ“จํ„ฐ์—์„œ ์›๊ฒฉ ์ œ์–ดํ•˜๋˜ ๊ฒƒ๊ณผ ๋™์ผํ•œ ์˜ต์…˜ & ์•„์ด๋””, ๋น„๋ฐ€๋ฒˆํ˜ธ๋กœ ์ ‘์† ์„ฑ๊ณต.
์ด์ œ Juni์™€ ๊ฐ™์€ DB๋ฅผ ๋™์‹œ์— ์›๊ฒฉ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋‹ค! :D

 

- ๊ด€๋ฆฌ์ž์šฉ DB CRUD ํŽ˜์ด์ง€ - Create API ์ƒ์„ฑ ์™„๋ฃŒ 
& cbase, ctopping, csyrup ๋ฐ์ดํ„ฐ ์‚ฝ์ž… ์™„๋ฃŒ

AWS mongoDB์™€ ํ†ต์‹ ์„ ์„ฑ๊ณตํ•œ ๋’ค ๋ณธ๊ฒฉ์ ์œผ๋กœ
Category - cbase, ctopping, csyrup ๋ฐ์ดํ„ฐ๋ฅผ ๋„ฃ๊ธฐ ์œ„ํ•œ Create API ๋ฅผ ๋งŒ๋“ค๊ณ , ๋ชจ๋“  ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฝ์ž… ์™„๋ฃŒํ–ˆ๋‹ค.

๋งˆ์ฐฌ๊ฐ€์ง€๋กœ Flavor - signature, season ๋„ Create API๋ฅผ ์™„์„ฑํ–ˆ๋‹ค.
์ด์ œ ๋ฐ์ดํ„ฐ ์‚ฝ์ž…๋งŒ ๋น ๋ฅด๊ฒŒ ํ•˜๋ฉด ๋œ๋‹ค!

์˜ค๋Š˜๋„ ์—ด์‹ฌํžˆ ํ•จ๊ป˜ํ•ด์ค€ Juni์—๊ฒŒ ๊ฐ์‚ฌ๋ฅผ. ๐Ÿ‘๐Ÿ‘

 

โœ… ์•ž์œผ๋กœ ํ•  ์ผ

- DB์— Flavor(signature, season) ๋ฐ์ดํ„ฐ ์‚ฝ์ž… ์™„๋ฃŒํ•˜๊ธฐ.
- app/static/img์— ์ €์žฅ๋œ ์•„์ด์Šคํฌ๋ฆผ ์ด๋ฏธ์ง€ (signature, season) ๊ฒฝ๋กœ๋ฅผ DB์— ์ €์žฅํ•˜๊ธฐ.
- ๋ณธ๊ฒฉ์ ์ธ ์•„์ด์Šคํฌ๋ฆผ ํ•„ํ„ฐ๋ง (ํ”„๋ก ํŠธ, ๋ฐฑ) ๊ธฐ๋Šฅ ๊ตฌํ˜„ํ•˜๊ธฐ!!