-
Notifications
You must be signed in to change notification settings - Fork 5
Retrospection_W2
gyim1345 edited this page Nov 23, 2020
·
8 revisions
- backend framework μ€μΉ(Koa), dotenv, lint + prettier, mongodb, mongoose
- schema κ²ν λ° λΆλΆ μμ±
-
error-handling
- try-catchλ₯Ό μΈμ§ μλλ©΄ μ μ default error handlingμ ν μ§
- https://github.com/koajs/koa/blob/master/docs/error-handling.md
- https://github.com/koajs/koa/wiki/Error-Handling
-
dbμ ν΅μ νλ μ½λλ€μ μ΄λμ λμ§ κ³ λ―Ό.
- μλ²μμ λ°λ‘ dbμ ν΅μ
- λ°λ‘ ν΄λμ λΆλ¦¬
- λΆλ¦¬μ model ν΄λλ schemaλ₯Ό μ μ νλ―λ‘ λ€λ₯Έ ν΄λμ λ£κΈ° μ) user.repository.js
- schema μ μ νλ κ³³(model ν΄λ)μμ λ°λ‘ dbμ ν΅μ νλ codeλ₯Ό μμ±ν΄μ κ·Έ λ©μλλ€μ exportνλ€(schemaλ‘ λ§λ model λμ ).
- νμΌμ μ± μμ΄ 3κ°μ΄λ€. (μ€ν€λ§ μ μ, modelμ λ§λ€κ³ , dbμ ν΅μ )
- api λͺ μΈμ μμ±
- back log μμ±