GithubHelp home page GithubHelp logo

perago / pre-onboarding-8th-3-11 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pre-onboading-eleven/pre-onboarding-8th-3-11

0.0 0.0 0.0 145 KB

JavaScript 7.56% TypeScript 89.84% CSS 0.55% HTML 1.20% Shell 0.85%

pre-onboarding-8th-3-11's Introduction

시작하기

npm install
npm run dev

캐싱 구현 방법

  1. 검색해야 하는 데이터는 병명 코드로서, 검색결과가 바뀔 가능성은 상당히 낮습니다. 따라서 캐싱을 위해 로컬의 Web Storage를 사용했고, 검색결과가 영구적이지는 않으므로 Session Storage를 사용했습니다.
  2. 검색한 정보는 전부 캐싱 했고, 검색 효율성을 위해 검색결과가 없는 경우와 있는 경우를 나눠서 저장했습니다.
  3. 만일 검색한 정보가 Session Storage가 존재하면(캐시라면) 꺼내와서 정보를 표출합니다. 없다면 서버에 정보를 요청합니다.
  4. 사용자가 타이핑 하는 모든 글자에 결과를 줄 필요는 없으므로 500ms의 debounce를 주었습니다.

특장점

  • 관심사 분리와 의존성 역전을 위해 Class, Context API를 활용했습니다.
  • 과제 시작 전에 사용할 모든 기술을 미리 맞춰둬 소통이 원활했습니다.

유의점

pre-onboarding-8th-3-11's People

Contributors

perago avatar alsrud29 avatar

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.