-
Notifications
You must be signed in to change notification settings - Fork 5
Retrospection_W2
gyim1345 edited this page Nov 24, 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 μμ±
-
Backend μμ νκ²½ μ€μ
- body-parser λͺ¨λ μ€μΉ λ° post ν μ€νΈ
- eslint-config-prettier, eslint-plugin-prettier λͺ¨λ μ€μΉ
- @koa/cors λͺ¨λ μ€μΉ
-
Frontend μμ νκ²½ μ€μ
- react, react-redux μ€μΉ
- @reduxjs/toolkit λͺ¨λ μ€μΉ
-
μ€ν€λ§ μμ±
-
User Schema
- _id, name, email, imageURL
- provider: μ΄λ€ μΈμ¦λ°©μμ μ¨μ λ‘κ·ΈμΈν κ²μΈμ§? (naver, github, ...)
- providerId: λ‘κ·ΈμΈ μ callback μΌλ‘ λ°μμ§λ Id μ μ₯ (μΆν λΉκ΅λ₯Ό μν΄ μ μ₯ν΄λ )
- startDayOfWeek: μμμΌ ~ μΌμμΌ μ€μ μ΄λλ₯Ό λ¬λ ₯ μμμΌλ‘ ν μ§?
- startDateOfMonth: 1 ~ 31μΌ μ€ μ΄λλ₯Ό μμν μ§?
- imageURL: μ¬μ©μ νλ‘ν
- createAt: κ°μ μΌ
- paymentMethod: μΉ΄λ μ΄λ¦(KB κ΅λ―ΌμΉ΄λ, μΉ΄μΉ΄μ€),
-
Transaction Schema
- accountBookId: κ°κ³λΆ id
- userId: ν΄λΉ user
- date: μμ±λ λ μ§
- category: μ΄λ λΆμΌμμμ μμ μΈμ§ μ§μΆμΈμ§
- paymentMethod: μΉ΄λμΈμ§ νκΈμΈμ§
- description: μ€λͺ
- cost: λ
- tag:
#κ°μ‘±μ¬ν,#μλΉ - imageURL: μμ /μ§μΆ κ΄λ ¨ μ¬μ§μ λ£μΌλ €λ©΄ λ£κΈ°μν΄
-
AccountBook Schema
- title: κ°κ³λΆ μ΄λ¦,
- authorizedUsers: κ°κ³λΆμ μΈμ¦λμ΄μλ μ¬μ©μ
-
Category Schema
- 6κ° ~ 20κ° λͺ¨λ userμκ²
λμΌνκ²λ³΄μ¬μ€ κ² - μΉ΄ν κ³ λ¦¬λ λ°λ‘ 컀μ€ν μλκ³ , 컀μ€ν μ tagμμ μ§ν
- 6κ° ~ 20κ° λͺ¨λ userμκ²
-
PaymentMethod Schema
- μλλ κ³ννμλλ°, Transaction λ°μ΄ν°λ₯Ό ν΅ν΄ κ° μΉ΄λλ³λ‘ filterλ₯Ό ꡬννλ©΄ μ΄λ¨μ§?
- μ°μ μ user Modelκ³Ό ν©μ³€μ
-
// user.modelμμ μ²λ¦¬ μμ const mongoose = require('mongoose'); const { Schema } = mongoose; const paymentMethodSchema = new Schema({ name: String, }); module.exports = mongoose.model('paymentMethod', paymentMethodSchema);
-
- μ°μ¬μ₯λμ΄ λ‘κ·ΈμΈμ ν΄μ£Όμ λ€κ³ νμλλ€.. μΆ©μ± γ γ ^^7
- μ€μ /μ€ν μΆ©μ€νκ² νμλ€κ³Ό μμ μ νμ΅λλ€.
- redux μ체 곡λΆ
- react toolkit 곡λΆ
- react 곡λΆ
- react Memoλ μΈμ μ¨μΌν μ§ λ± μμ보기
- 곡λΆνκ³ [κΈ°μ 곡μ ] μ μ¬λ¦¬κΈ°
- 벨λ‘νΌνΈ 리μ‘νΈ λ¦¬λμ€
- jbbe react toolkit μ€λͺ
- toolkit 곡μλ¬Έμ
- react toolkit + redux + container/presentational + test μμ
- ReactMemo λ€μ΄κ°μλ μ»΄ν¬λνΈ μμ
- Redux 곡λΆν λ΄μ© 곡μ (ν¨κ» μ±μ₯νκΈ°! πββοΈπββοΈ)
- μκ° λλ©΄ react-toolkitλ 곡λΆνκΈ°!
- ncloud μλ² μμ± & λ°°ν¬
- μλ² μμ± μλ£λλ©΄ => github Action
- github action yml