λ©μ¬ 11th μ€μν΄μ»€ν€ Bridge μ°λμ½λ
Bridge ννμ΄μ§ λ°©λ¬ΈνκΈ°
(μκΈ λΆκ³Ό λ¬Έμ λ‘ νμ¬λ λ«ν μνμ
λλ€.)
-
git clone λ°κΈ°
-
secrets.json νμΌ μμ±
(λͺ©μ ) λ‘κ·ΈμΈμ μν νμΌ
(μ΄κΈ° μΈν ) Kakao Developers, NAVER Developers, Google Cloud Console μ μ μνμ¬ λ§λ€ μ±μ λν κ°κ°μ ν€λ₯Ό λ°κΈλ°κΈ°
(νμΌ κ²½λ‘) Bridge/bridge/secrets.json
(νμΌ λ΄μ©)
- "SECRET_KEY"λ μ₯κ³ secret_keyλ‘ settings.pyμμ νμΈ κ°λ₯
- λ°μ΄ν λΆλΆμ λ°κΈλ°μ λ΄μ©μΌλ‘ μ±μ°κΈ°
- redirect uriλ κ° μμ μ Developersμμ μ€μ ν redirect uriλ₯Ό λμΌνκ² μ€μ ν΄μΌ ν¨ (μ¬μ΄νΈμ λ€μ΄κ°μ μλμ κ°μ΄ μ€μ ν κ²)
{ "SECRET_KEY": "django-insecure-", "KAKAO_REST_API_KEY": "", "KAKAO_REDIRECT_URI": "http://127.0.0.1:8000/accounts/login/kakao/user/callback/", "KAKAO_SECRET_KEY": "", "NAVER_CLIENT_ID": "", "NAVER_REDIRECT_URI": "http://127.0.0.1:8000/accounts/login/naver/user/callback/", "NAVER_CLIENT_SECRET": "", "GOOGLE_CLIENT_ID": "", "GOOGLE_REDIRECT_URI": "http://127.0.0.1:8000/accounts/login/google/user/callback/", "GOOGLE_CLIENT_SECRET": "" }
-
Bridge ν΄λ μμμ ν°λ―Έλ μ€ν ν κ°μνκ²½ λ§λ€κ³ μΌκΈ° (μλμ°λ git bash μ€ν)
# κ°μνκ²½ λ§λ€κΈ° python -m venv myvenv
# κ°μνκ²½ μ€ν ## μλμ° source myvenv/Scripts/activate ## λ§₯ source myvenv/bin/activate
-
μ₯κ³ μλ² μ€ν
python manage.py runserver
-
리μ‘νΈ μ€ν Bridge/Bridge-Client ν΄λ μμμ μλ‘μ΄ ν°λ―Έλ μ€ν (μλμ°λ git bash μ€ν)
# yarn μ€μΉ ## μλμ° sudo npm install -g yarn ## λ§₯ brew install yarn
# react-scripts μΆκ° sudo yarn add react-scripts
# 리μ‘νΈ μ€ν yarn start