국내 주식 정보 제공 서비스
f-lab-edu / orange-stock-ios Goto Github PK
View Code? Open in Web Editor NEW국내 주식 정보 제공 서비스
국내 주식 정보 제공 서비스
현재 구조에서 앱이 백그라운드로 들어갈 때 AccessToken을 폐기하고, 다시 포그라운드로 나올 때 AccessToken을 받아오는 방식인데 JWT 내부에 정의된 expired_at
필드를 이용하면 서버 통신 없이도 만료 여부를 체크할 수 있습니다. 상태가 전환될 때마다 토큰을 재발급하면 네트워크 리소스도 많이 소비할거고요.
API를 호출할 때마다 혹은 주기적으로 토큰 만료 여부를 체크하여 만료에 가까워질 때에만 엑세스 토큰을 재발행하는 방식이 어떨까요?
Originally posted by @sqlpro in #18 (review)
주식 현재가 조회 Service
주식현재가(시세)조회 (단건 조회)
API용주식멀티현재가조회 (복수 종목 조회)
패키지 구조 변경. 폴더명 복수형으로 변경
오류 코드는 API 스펙에 의해서 바뀔 수 있는 만큼, 상수로 따로 빼놔주시는 게 좋을 듯 합니다.
TOKEN_ERROR_CODE
같은 걸로요
Originally posted by @sqlpro in #18 (comment)
Originally posted by @sqlpro in #18 (comment)
final
키워드 추가ViewController용 Layout Protocol 생성하여
레이아웃 관련 함수들을 일관성 있게 한다.
#UserStory1
관심 주식으로 등록된 종목들의 정보 (현재가, 등락, 등락률등)등을 가져오기 위한
네트워크 모델 구축
OAuth Service
접근토큰발급
앱 실행 시, 앱이 foreground로 돌아왔을 때 액세스토근 발급
토큰 만료 되었을 때 토큰 재발급
접근토근폐기
앱이 백그라운드에 진입, 앱 종료 시 폐기.
환경에 따라 (테스트, 실 코드) ASAuthorizationController 객체를 생성하도록 FactoryMethod 디자인 패턴을 적용하여 리팩토링
guard에 들어가는 조건절이 길어지는데 request를 인자로 받는 함수를 정의해서 처리하는 게 가독성 면에서 낫지 않을까요?
Originally posted by @sqlpro in #18 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.