Python & Flask
Startup Fullstack Developer
indiflex시니어코딩
목차
설치 및 세팅
Python, Flask 총정리
Git 실무
Python 코딩 스킬
실습: 홈페이지 만들기
크롤링 API 개발
VSCode
Setup
Startup Fullstack Developer
indiflex시니어코딩
In This Chapter,
Install Python 3
공식사이트: https://www.python.org/
(warning) 설치시 �하단의 Path 설정 체크하세요!!
$> python -V
# python interpreter�$> python�>>>
(참고) Anaconda
Install VSCode
Setup & Extensions for Python
# Settings
# Virtual Environment
�# Code Definition
# Editor Usage
# Basic Extensions
# Install Extensions for Python
debug & pytest cf. unittest
# Debug > create a launch.json > Create python file
# Break point
# Install Extensions for Test
# Settings
⇒ install framework.pytest
# mkdir pytest (default test directory)
Python
총정리
Startup Fullstack Developer
indiflex시니어코딩
Python 기초 강좌
Flask
총정리
Startup Fullstack Developer
indiflex시니어코딩
Flask 기초 강좌
Git with VSCode
Branch / Merge / Rebase
Fork / Pull Request
(Social Coding)
Startup Fullstack Developer
indiflex시니어코딩
In This Chapter,
Git 기초 강좌 (선수학습)
Git with VSCode
# Install VSCode Extensions for Git
# Git Project Settings
Git Branch & Rebase/Reset/Tag
# Git Branch
# Git Rebase & Reset/Revert/Tag
$> git branch [-a | -r]
$> git branch <new-branch> [<from-br>]
$> git checkout <branch-name>
$> git checkout -b <new-br> <from-br>
$> git checkout -
$> git checkout master�$> git checkout -p <branch> <file>
$> git merge --no-ff <branch>
$> git log --graph
$> git branch [-d|-D] <branch-name>
$> git push -d origin <br>
$> git commit --amend ⇐ REWORD
$> git rebase -i HEAD~2 # --abort
$> git reflog
$> git reset --hard <revision-hash-id>
$> git reset --hard <tag>
$> git push -u origin master ⇐ Upstream
$> git revert <revision-hash-id>
$> git revert <revision-hash-id> -- <path>
$> git tag
$> git tag v0.0.1
$> git push origin [--tags | v0.0.1]
$> git tag -d <tag>
$> git push origin -d <tag>
Pull Request (Social Coding)
# Fork & Pull Request on Git Service
# Forked Repository Management (upstream)
Pull Request (Code Review)
# Collaborator # Author(Leader)
Git 실무
(Git Flow)
Startup Fullstack Developer
indiflex시니어코딩
In This Chapter,
Git Flow Concepts
Install Git Flow
## Mac
$> brew install git-flow
�
## Linux
$> sudo -
$> dnf install git -y�$> curl -OL https://raw.github.com/nvie/gitflow/develop/contrib/gitflow-installer.sh
$> chmod +x gitflow-installer.sh
$> ./gitflow-installer.sh
# Git Flow Settings
## Windows
$> git clone --recursive git://github.com/nvie/gitflow.git
$> cd gitflow
$> git config --global url."https://github".insteadOf git://github��C:\gitflow> contrib\msysgit-install.cmd "[path to git installed folder]"
$> ln -s "/C/Program Files (x86)/Git/bin/git-flow" git-flow
Git Flow Commands
$> git flow init
$> git push origin --all
$> git flow feature start <feature-branch>
$> git flow feature list
$> git add .
$> git commit -m
# push & pull-request(to review)
$> git flow feature finish <feature-branch>
$ other-feature> git merge --no-ff develop
$> git flow release start <tag>
$> git flow release finish <tag>
$> git tag
$> git push origin --all --follow-tags
$> git flow hotfix start <tag>
$> git flow hotfix finish <tag>
## scripts
$> git flow init
$> git push origin --all
$> git flow feature start login
$> git merge --no-ff develop
Ex. Try This
Git 실무
Startup Fullstack Developer
indiflex시니어코딩
In This Chapter,
TroubleShooting 1 - make ignore already pushed�
실수로 remote repository에 불필요한 파일/폴더를
Push했다.
.gitignore에 추가하고 삭제 후 push해도�원격에서는 지워지지 않는다.
TroubleShooting 2 - Work with Master Branch�
실수로 작업(Topic) 브랜치가 아닌
메인(Master) 브랜치에서 작업하고 커밋했다.
Master는 원위치하고, 작업한 소스는 살리고 싶다!!
TroubleShooting 3 - Topic Branch Recovery�
작업 중이던 Topic 브랜치를 실수로 삭제했다. (-D)
git reset으로 브랜치는 복구되지 않는다.
브랜치를 그대로 복원하고 싶다.
TroubleShooting 4 - Rollback Service Source�
버그 수정(hotfix)해서 Tag 0.2.1 배포 후
Python
코딩 스킬
Startup Fullstack Developer
indiflex시니어코딩
Flask
REST API
Startup Fullstack Developer
indiflex시니어코딩
Setup & Extensions for Web Development
# Settings
# Virtual Environment
�# Code Definition
# Editor Usage
# Install Extensions for FrontEnd
Flask
크롤링
API 개발
Startup Fullstack Developer
indiflex시니어코딩
Thank you
수고 많으셨어요~
Startup Fullstack Developer
indiflex시니어코딩