๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ

201217

ยท ์•ฝ 1๋ถ„

MySQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ƒ์„ฑ#

CREATE DATABASE mydb;--- ์•„์ด๋”” ๋ฐ ํŒจ์Šค์›Œ๋“œ ์„ค์ •CREATE USER 'myuserid'@'%' IDENTIFIED BY 'mypassword';GRANT ALL ON mydb.* TO 'myuserid'@'%';FLUSH PRIVILEGES;

mydb: ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ด๋ฆ„

myuserid: ์‚ฌ์šฉ์ž id

mypassword: ์‚ฌ์šฉ์ž ํŒจ์Šค์›Œ๋“œ

์‚ฌ์šฉ์ž ํŒจ์Šค์›Œ๋“œ๊ฐ€ ์ƒ๊ฐ๋‚˜์ง€ ์•Š์„ ๋•Œ#

๋ฃจํŠธ ์‚ฌ์šฉ์ž๋กœ ๋กœ๊ทธ์ธ ํ›„ ์ผ๋ฐ˜ ์‚ฌ์šฉ์ž ํŒจ์Šค์›Œ๋“œ๋Š” ์‰ฝ๊ฒŒ ๋ณ€๊ฒฝ ๊ฐ€๋Šฅ

SET PASSWORD FOR 'myuserid'@'%'='new_password';FLUSH PRIVILEGES;

๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์„ค๊ณ„#

https://medium.com/@Mareks_082/auto-increment-keys-vs-uuid-a74d81f7476a

https://tomharrisonjr.com/uuid-or-guid-as-primary-keys-be-careful-7b2aa3dcb439

https://www.percona.com/blog/2019/11/22/uuids-are-popular-but-bad-for-performance-lets-discuss/

https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/

https://medium.com/aha-official/์•„ํ•˜-rest-api-์„œ๋ฒ„-๊ฐœ๋ฐœ-6-43568d94878a

Node + Express#

https://github.com/goldbergyoni/nodebestpractices#2-error-handling-practices

TypeScript + Sequelize#

https://github.com/maximegris/typescript-express-sequelize/blob/master/src/sqlz/config/config.json

https://sequelize.org/v5/manual/migrations.html

Sequelize + Crypto#

https://medium.com/@benjaminpwagner/using-sequelize-hooks-and-crypto-to-encrypt-user-passwords-5cf1a27513d9

https://medium.com/aha-official/์•„ํ•˜-rest-api-์„œ๋ฒ„-๊ฐœ๋ฐœ-7-712e0588579f


Jest did not exit one second after the test run has completed using express#

https://stackoverflow.com/a/63299022/12983614

Wrap Async#

https://medium.com/@changjoopark/express-๋ผ์šฐํŠธ์—์„œ-async-await๋ฅผ-์‚ฌ์šฉํ•˜๋ ค๋ฉด-7e8ffe0fcc84