Skip to content

week1_output

Yancy edited this page Nov 20, 2020 · 12 revisions

🚀 Week 1 산출물 정리

🔖 MongoDB Collections & Mongoose schema

Collections

erd

Mongoose schema

const user = new Schema(
  {
    authName: String,
    authId: Number,
  },
);
const accountBook = new Schema(
  {
    accountBookId: Number,
    accountBookName: String,
    accountBookAuthorizedUsers: [String],
  },
);
const transactions = new Schema(
  {
    accountBookId: Number,
    date: Date,
    category: String,
    card: String,
    description: String,
    cost: Number,
    tag: [String],
    imageUrl: String,
    author: String,
  },
);
const account = new Schema(
  {
    name: String
  },
);
const category = new Schema(
  {
    name: String
  },
);
const tag = new Schema(
  {
    name: String
  },
);

Db Collection sample

user

const user = [{
  "_id": 1,
  "authName": "name",
  "authId": 1234,
},]

accountBook

const accountBook = [{
  "_id": 1,
  "accountBookId": 1,
  "accountBookName": 'Name',
  "accountBookAuthorizedUsers": ['Name'],
},]

transactions

const transactions = [{
  "_id": 1,
  "accountBookId": 1,
  "date": "2020-01-15 14:20",
  "category": "food",
  "card": "naver card",
  "description": "분식집에서 떡볶이 먹엇으~",
  "cost": 20000,
  "tag": ["분식집", "떡볶이"],
  "imageUrl": "https://www.asiatime.co.kr/news/data/20191217/p1065600532377147_587_thum.jpg",
  "author": "name",
},]

account

const account = [{
  "_id": 1,
  "name": "현대카드",
},{
  "_id": 2,
  "name": "네이버페이"
},]

category

const category = [{
  "_id": 1,
  "name": "food"
}, {
  "_id": 2,
  "name": "transportation"
}, {
  "_id": 3,
  "name": "education"
},]

tag

const tag = [{
  "_id": 1,
  "name": "분식집"
}, {
  "_id": 1,
  "name": "떡볶이"
},]
🔖 Work Flow

image

image

🔖 PR / ISSUE / BUG Template

ISSUE Template

## 🗣 설명

Github 이슈 설명
<br/>

## 📋 체크리스트

> 구현해야하는 이슈 체크리스트

- [ ] 체크 사항 1
- [ ] 체크 사항 2
- [ ] 체크 사항 3
- [ ] 체크 사항 4
<br/>

## 🚧 주의 사항

> 이슈를 구현할  유의깊게 살펴볼 사항

- 주의 사항 1
- 주의 사항 2

PR Template

##  작업 내용
- [ ] 작업 내역 1
- [ ] 작업 내역 2

## 🔨 변경 사항 (구현 사항)
- [ ] 구현 사항 1
- [ ] 구현 사항 2

## 📸 스크린샷 (Optional)

## 🔒 관련이슈 (Optional)
- (close #issueNumber) 형식으로 닫을 이슈를 명시해주세요.

BUG Template

### 🤔 Current behaviour (bug)

Write here

<br/>

### 😮 Expected behaviour (correct)

Write here

<br/>

### 😣 버그 재현방법

1. Write here
2. Write here

🔖 화면 설계 (기획서)
  • moqups를 활용해 기획서를 작성했습니다.

로그인 페이지

image

가계부 선택 페이지

image

대시보드(메인 페이지)

20201119_171157_36

수입/지출 페이지

20201119_171157_37

카드/계좌 페이지

20201119_171157_38

카테고리/태그 페이지

20201119_171157_39

달력 페이지

20201119_171157_40

보고서 페이지

보고서

설정 페이지

image

🤔 고민 요소

MMS -> Text Parsing

  • 문자 내용을 통해 지출 카테고리를 어떻게 확인할 수 있을까?
    • 핸드폰은 문자가 오는 이벤트가 있다면 -> 캐치한다 이런 느낌이 있는데
    • 웹은 문자 정보를 어떻게 받아들일까? 🤔🤔🤔
  • 웹 중심 개발을 고민했었는데, 모바일 중심 개발을 고려해야할까?
  • 아래와 같은 문자 형식으로 웹에 사용자가 넣어주도록 해야할까?
[Web발신]
8,000원 일시불
딸부자네11번출구점

Clone this wiki locally