Skip to content

Latest commit

Β 

History

History
140 lines (102 loc) Β· 3.29 KB

File metadata and controls

140 lines (102 loc) Β· 3.29 KB

NotToDo-server

스크란샷 2023-01-05 α„‹α…©α„Œα…₯ᆫ 3 57 26

μ„œλΉ„μŠ€ 핡심 κΈ°λŠ₯ μ†Œκ°œ

A4 - 2

였늘 ν•˜λ£¨ ν•˜μ§€ μ•Šμ„ 것을 μ§€ν‚€κ³  더 λ‚˜μ€ 일상을 κ²½ν—˜ν•˜μ„Έμš”. 일상 속 규율 지킴이 λ‚«νˆ¬λ‘.

1단계 였늘의 λ‚«νˆ¬λ‘ μž‘μ„±

2단계 단계별 달성 체크

3단계 λ‚«νˆ¬λ‘ μ‹€μ²œ 방법 μΆ”μ²œ

4단계 μ„±μ·¨ 기둝 톡계

dependencies module (package.json)

{
  "name": "nottodo",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "scripts": {
    "dev": "nodemon",
    "build": "tsc && node dist/src",
    "test": "mocha -r ts-node/register src/test/*.spec.ts -exit",
    "db:pull": "npx prisma db pull",
    "db:push": "npx prisma db push",
    "generate": "npx prisma generate"
  },
  "devDependencies": {
    "@types/bcryptjs": "^2.4.2",
    "@types/chai": "^4.3.4",
    "@types/express": "^4.17.14",
    "@types/jsonwebtoken": "^8.5.9",
    "@types/node": "^18.11.9",
    "@types/supertest": "^2.0.12",
    "chai": "^4.3.7",
    "eslint": "^8.19.0",
    "mocha": "^10.2.0",
    "nodemon": "^2.0.20",
    "prettier": "^2.7.1",
    "supertest": "^6.3.3",
    "ts-node": "^10.8.2",
    "typescript": "^4.7.4"
  },
  "dependencies": {
    "@prisma/client": "^4.5.0",
    "@types/express-validator": "^3.0.0",
    "@types/mocha": "^10.0.1",
    "agenda": "^4.3.0",
    "axios": "^1.2.2",
    "bcryptjs": "^2.4.3",
    "dayjs": "^1.11.7",
    "dotenv": "^16.0.3",
    "express": "^4.18.2",
    "express-validator": "^6.14.2",
    "firebase-admin": "^11.4.1",
    "jsonwebtoken": "^8.5.1",
    "moment": "^2.29.4",
    "mongoose": "^6.8.2",
    "prisma": "^4.5.0",
    "ts-config": "^20.10.0"
  }
}

Server architecture

image

μ„€κ³„ν•œ DB의 ERD

image

νŒ€λ³„ μ—­ν• λΆ„λ‹΄

image

λ°•μ •ν›ˆ: AWS μ„ΈνŒ…

λ‚¨μ§€μœ€: ν”„λ‘œμ νŠΈ μ„ΈνŒ…

κΉ€ν˜œμˆ˜: Git μ„ΈνŒ…

Commit, coding convention, branch μ „λž΅

Commit convention

prefix: [이슈번호] λ‚΄μš©

ex) fix: #23 μ–΄μ©Œκ΅¬ κ³ μΉ¨

  • feat (feature)
  • fix (bug fix)
  • docs (documentation)
  • style (formatting, missing semi colons, …)
  • refactor
  • test (when adding missing tests)
  • chore (maintain)

Coding Convention

Coding Convention Link

Branch convention

Prefix/이슈번호

ex) Feat/#4

ν”„λ‘œμ νŠΈ 폴더 ꡬ쑰

β”œβ”€β”€ node_modules
β”œβ”€β”€ prisma
└── src
    β”œβ”€β”€ constants
    β”œβ”€β”€ controllers
    β”œβ”€β”€ middlewares
    β”œβ”€β”€ modules
    β”œβ”€β”€ router
    └── service

전체 API 둜직 κ΅¬ν˜„ 진척도

  • λ‚¨μ§€μœ€ λ‹΄λ‹Ή API: 100%
  • λ°•μ •ν›ˆ λ‹΄λ‹Ή API: 100%
  • κΉ€ν˜œμˆ˜ λ‹΄λ‹Ή API: 100%