Code Monkey home page Code Monkey logo

itbook-store's Introduction

JS react styled-components RN Next.js

itbook-store's People

Contributors

yesl-kim avatar

Watchers

 avatar

itbook-store's Issues

[무한스크롤] 페이지별 렌더할 도서의 개수 지정

  • 현재 api에서 받아오는 페이지별 데이터의 개수는 10개
  • | 연산을 사용하여 검색한 경우 20개의 데이터가 렌더됨 (두 반환값이 합쳐진 형태)
  • 렌더최적화를 위해 한 번에 렌더하는 데이터의 개수를 지정할 수 있도록 수정

[리스트] 정렬

  • '|' 연산시 두 반환값이 그대로 합쳐지기 때문에 순서가 지켜지지 않음
  • test 검색 후 test | js 검색시 test 결과 뒤에 바로 js 결과가 이어붙음 -> 실제 겸색이 다시 되었는지 알기 어려움

기대사항

  • 두 결과가 합쳐지거나 상쇄될 때 정렬이 되기를 기대 (제목 기준)

[상세] 상세 화면 추가

  • 서적 리스트 중 선택된 서적의 상세 정보를 보여준다.
  • JSON으로 받은 데이터 중 다음 프로퍼티를 필수로 화면에 보여주어야한다.
{
	"title":"MongoDB in Action, 2nd Edition",
	"subtitle":"Covers MongoDB version 3.0",
	"authors":"Kyle Banker, Peter Bakkum, Shaun Verch, Douglas Garrett, Tim Hawkins",
	"publisher":"Manning",
	"pages":"480",
	"rating":"4",
	"desc":"MongoDB in Action, 2nd Edition is a completely revised and updated version. It introduces MongoDB 3.0 and the document-oriented database model. This perfectly paced book gives you both the big picture you'll need as a developer and enough low-level detail to satisfy system engineers.MongoDB in ...",
	"price":"$19.99",
	"image":"https://itbook.store/img/books/9781617291609.png",
}

[공통] 상수 관리

프로젝트 내의 상수 관리

  • naviagate 경로
  • fetch HOST
  • 쿼리 파라미터의 key

[리스트] 검색 기능 추가

Description

  • 특정 키워드를 입력받을 수 있도록 한다.
  • 키워드는 최대 2개이고 ‘or’ 와 ‘not’ operator로 구분된다.
    • ‘or(|)’ operator는 각각의 키워드로 검색한 결과를 합쳐서 보여준다. (e.g. ‘tdd|javascript’ : tdd로 검색한 결과와 jvascript으로 검색한 결과를 합쳐서 보여준다.)
    • ‘not(-)’ operator는 앞의 키워드가 제목에 포함된 서적을 검색하되 뒤의 키워드가 포함되지
      않은 서적들을 보여준다. (e.g. ‘tdd-javascript’ : tdd가 제목에 포함된 서적을 검색하되
      javascript라는 키워드를 가지고 있는 서적은 제외한다.)

Tasks

  • 유효성 검사
  • 검색 요청

테스트 코드 작성

component

  • Search component
  • book-list component
  • book-card component

util function

  • lib/search-books
  • parser

page

  • home
  • book list
  • book detail

[리스트] 도서 목록 출력

  • 검색 전 초기 화면
  • 검색 후 도서목록 출력: 다음 프로퍼티를 필수로 화면에 보여주어야한다.
{
    "title": "MongoDB in Action, 2nd Edition",
    "subtitle": "Covers MongoDB version 3.0",
    "image": "https://itbook.store/img/books/9781617291609.png",
    "url": "https://itbook.store/books/9781617291609"
}
  • 도서 목록이 없을 경우 (검색결과가 없는 경우)
  • 로딩: 스켈레톤
  • 에러

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.