Code Monkey home page Code Monkey logo

swpp2020-team1's Introduction

swpp2020-team1

Build Status Quality Gate Status Coverage Status

Foodify, an all-in-one refrigerator management service

Frontend

Run

cd frontend
yarn install
yarn start

Test

cd frontend
yarn install
yarn test --coverage --watchAll=false

Backend

Run

cd backend
python manage.py makemigrations
python manage.py migrate
python manage.py runserver 

Test

cd backend
coverage run --source='./api' manage.py test

swpp2020-team1's People

Contributors

hy00nc avatar jsgh7276 avatar jungin-jin-choi avatar kooyunmo avatar samso-today avatar yankee624 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

swpp2020-team1's Issues

expiration date 없는 item들

유통기한 따로 없는 제품들의 경우
(1) AddItem.js에서
expiration date scanning 스킵하게 해줘야
(2) item edit화면에서 체크박스 ㅁ 표시

Implement category

  • category reducer, action
  • EditItem에서 GET category 해온 후 유저가 그 리스트에서 검색할 수 있도록 만들어주기
  • (optional) item name으로부터 자동으로 카테고리 추천

build error - csrf token

======================================================================
ERROR: test_signout (api.tests.ApiTestCase)

Traceback (most recent call last):
File "/Users/JC/swpp2020-team1/backend/api/tests.py", line 67, in test_signout
csrftoken = response.cookies['csrftoken'].value # Get csrf token from cookie
KeyError: 'csrftoken'

======================================================================
FAIL: test_csrf (api.tests.ApiTestCase)

Traceback (most recent call last):
File "/Users/JC/swpp2020-team1/backend/api/tests.py", line 15, in test_csrf
self.assertEqual(response.status_code, 403) # Request without csrf token returns 403
AssertionError: 404 != 403

nanonet api proxy setting

setupProxy.js

back 부분 날리기

foodify.shop/api/... (X)
should be routed to app.nanonet.com/api/.... (O)

d-1hr

korean ... (아이콘 국기)

confirm 페이지에서 수정/완료 버튼 UI

recipe detail UI (description 펼쳐놓기 .. )

recipe main page UI도 메인페이지 느낌이랑 통일시키기

add item페이지에서 ? 아이콘 추가하기 (간단한 안내)

첫 방문 시 help

  • expiration date 체크박스의 용도
  • retake button
    등의 안내 메시지가 띄워지기

noti type - [delete]

아이템1, 아이템2, 아이템3으로 레시피 검색했을 경우
다음번에 유저가 메인페이지 접속 시
아이템1, 아이템2, 아이템3 관련된 [delete]type notification생성
클릭하면 자동으로 아이템 수 감소되는..

custom unit

  • custom name처럼 add item할 때 유저가 직접 입력.
  • custom name처럼, add item 시 기존 제품임이 인식되면 기존 unit 띄워주기

vs

  • main page에서만 unit 수정 가능하게 해주기

backend url direct access

백엔드로 바로 접근가능하도록 냅두는게 맞는지?

nginx basicauth

auth_basic
auth_basic_user

=> priority나중으로

Mainpage Notification 버그

  • 아이템 추가 시 노티 아무것도 안 뜸 (맨 위 레시피노티 포함)
    아이템 수량 변경 시 갑자기 한 번에 다 뜸

Expiration date 체크박스 + Backend 처리

  • EditItem에서 expiration_date에 체크박스 만들기
  • 체크박스 풀면 expiration_date가 빈 string -> backend에서 빈 string받으면 2999년으로 처리
  • frontend에서 2999년 받으면 빈 string으로 구현

Notification types

[ex. expire, buy_item, recipe, ...]
노티 알림 유형을 어찌나눌것인지.. 유형이라는걸 두긴 할것인지 아무튼 조만간 확정지어야
(단순 유통기한 알림 ex. 3일 남았습니다!)
(제품 구매 연결 알림 ex. 우유가 곧 썩어요! 얼른 먹고 새로 주문할까요 ? ) (???)
(레시피 알림 ex. 우유를 활용한 레시피 확인하러 고고)

[AddItem] UI

현재:
카메라 뷰 두개 크기 다름
바코드 스캐닝 카메라는 중앙에서 좌측으로 tilted되어있음 (why??)

user nickname

user nickname field 추가
(comment 달았을 때 nickname으로 띄워주기)

[AddItem] bugs

  • 첫번째 아이템 expiration date 스캔 -> barcode 스캔 -> 두번 째 아이템 expiration date 스캔하면, 두번째 아이템 barcode 스캔이 스킵됨 (첫번째 아이템의 바코드가 똑같이 두번째 아이템에 입력됨)

  • expiration date 스캔 -> barcode 스캔 -> expiration date/barcode retake -> barcode retake 하면 barcode retake가 무시됨

  • 아무것도 스캔 안하고 ItemConfirm으로 넘어가면 빈 아이템이 하나 추가된 상태로 시작됨.

  • 그 외에도 더 있을 수도. 리팩토링 필요

test코드

정인
mainpage
userReducer, userAction (이름 바꿔 ㅎㅎ)
loginroute
(메인페이지에 병합시키면서 header지우기)

기창
recipedetail, recipe redu/action
comment red/ac
comment.js

재석이
reciperecommend
noti action/red

형석이
edititem

Notification(buy_item)

itemcount가 2에서 1이 되는 시점에
buy_item type으로 노티 생성해주기. (noti/user/int:user_id/ 에 POST 날려)

// 기존 애들은 expire type으로 생성 되어있겠지? 확인

// itemcount 0되면 그 아이템카운트의 노티없애주기

`기타` category 생성

카테고리 리스트에 원하는 카테고리가 없을 수도 있기 때문에 "기타" 카테고리 만들기
유저가 카테고리 선택 안하고 넘기면 자동으로 "기타" 카테고리로 설정.
(즉, 백엔드에는 카테고리가 null/blank로 설정될 일은 없음)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.