codestates / codestates/ds-TIL
[TIL] 오예은_201124
- Dominant language
- No language data
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
### 키워드
`API` `Twitter` `sqlalchemy ` `migrate` `ORM`
### 배운 것
- 데이터베이스의 테이블과 파이썬(코드)가 동기화가 되어있지 않으면 ORM이 있어도 의미가 없다.
- flask migrate
- db init - 데이터베이스 생성
- db migrate - 데이터베이스 이주
- db upgrade - 데이터베이스 적용(기록)
- db downgrade
- @app.route방식: 1. app을 전역변수로 설정 2. 설정 등 세부사항 수정 어려움 3. 매우 길어진다 >> factory pattern 사용
### 느낀 점
강의를 볼 땐 잘 이해가 되었는데 또 막상 시작하려니 어디서부터 손을 대는 것인지가 헷갈렸다. 차근차근 연습을 통해 익혀나가야겠다.
Contributor guide
No contributing guide indexed for this repository
Research direction
This issue is a Korean TIL entry covering API, Twitter, SQLAlchemy, Flask migration commands, ORM synchronization, and the factory pattern. No file, test, entry point, requested change, or completion criteria are provided, so there is no concrete implementation path from the issue alone.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flask, python, sqlalchemy
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100