Skip to content

πŸ† LIKELION&LOTTE 8th - Hackathon Project BaroBarot

Notifications You must be signed in to change notification settings

minsgy/Project_barobarot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“†Project_barobarot

πŸ₯ˆ 2020. 11. 03. - 둯데 해컀톀 은상 μˆ˜μƒμž‘

βœ”μ„œλΉ„μŠ€ 링크

πŸ† LIKELION&LOTTE 8th - Hackathon Project

image

πŸ–₯ DEMO

⚑️ μ„œλΉ„μŠ€ μ†Œκ°œ

  • 🌈 λ°”λ‘œλ°”λ‘― μ„œλΉ„μŠ€λž€?
  • 둯데 ν•˜μ΄λ§ˆνŠΈλͺ°μ˜ κΈ°μ‘΄ 배솑 μ„œλΉ„μŠ€λ₯Ό κ°œμ„ ν•˜μ—¬ κ΅¬μ„±ν•œ 아이디어.
  • μ„€μΉ˜μ™€ 배솑 μ„œλΉ„μŠ€λ₯Ό μŠ€μΌ€μ€„κ³Ό μ‹œκ°„μ„ 선택 ν›„, μŠ€μΌ€μ€„μ΄ λ˜λŠ” μ„€μΉ˜/배솑기사λ₯Ό 직접 리뷰λ₯Ό 보고 μ„ νƒν•˜λŠ” μ–ΈνƒνŠΈ μ„œλΉ„μŠ€

πŸ‘¨β€πŸ‘¨β€πŸ‘¨β€πŸ‘§β€πŸ‘§Team member

πŸ“‘ Project Specification

ν”„λ‘œμ νŠΈ μ‹€ν–‰ 법

  1. 가상 ν™˜κ²½ 생성 및 μ‹€ν–‰
  • python -m venv <κ°€μƒν™˜κ²½ 이름>
  • Windows . <κ°€μƒν™˜κ²½ 이름>/scripts/activate
  • Mac . <κ°€μƒν™˜κ²½ 이름>/bin/activate
  1. Django, Pillow, django-mathfilters μ„€μΉ˜
  • pip install django==2.1.1
  • pip install pillow
  • pip install django-mathfilters
  1. λͺ¨λΈ λ“±λ‘ν•˜κΈ°
  • python manage.py makemigrations
  • python manage.py migrate
  1. Superuser μƒμ„±ν•˜κΈ°
  • python manage.py createsuperuser
  1. Database File Create
  • URL /products_test λΆ™ν˜€μ„œ μž…λ ₯. μ—”μ§€λ‹ˆμ–΄ λͺ¨λΈ 11개, μƒν’ˆ λͺ¨λΈ 40개 DB CREATE

Installation

  • Python3 == 3.8.4
  • Django==2.1.1
  • HTML5
  • CSS3
  • JS
  • JQuery

Git Rule

  • βœ” Dev : κΈ°λŠ₯ 및 λͺ¨λ“ˆ κ°œλ°œμ„ μœ„ν•œ branch
  • βœ” Release : μ™„μ„± λ³Έ 디버깅 κ³Όμ • branch
  • βœ” Master : μ΅œμ’… λ³Έ branch
  1. 각자 λ‘œμ»¬μ—μ„œ μ΄λ¦„μœΌλ‘œ 된 branch μƒμ„±ν•˜κΈ° - Minsgy, Hmin, White, Umin, Leejun
  2. 각자 λ‘œμ»¬μ—μ„œ Pull Request 보낸 Commit을 Dev Branchμ—μ„œ merge.
  3. μ–΄λŠ 정도 개발 진행 ν›„, 전체적인 Prototype 을 μ‹€ν–‰ν•˜λŠ” branch.
  4. Release branch μ—μ„œ 디버깅 ν•˜μ—¬, μ΅œμ’… 결과물을 Master branch둜 merge.

Commit Rule

  • 넀이밍은 λ‹€μŒκ³Ό 같이 μž‘μ„±ν•¨.

    • Front-end

      • templates
        • Page μ°Έμ‘° λ°›λŠ” 파일 λͺ…은 "__"(underbar)λ₯Ό μΆ”κ°€ν•΄ 파일 λͺ… μž‘μ„±
        • 예) __main.html
        • VS Code - settings - format on save μΌœμ„œ μ½”λ“œ 정리 μžλ™ν™”
        • νŽ˜μ΄μ§€ μ΅œμƒλ‹¨μ— μ£Όμ„μœΌλ‘œ νŽ˜μ΄μ§€ κ°„λž΅ μ„€λͺ…, μž‘μ„±μΌ ν‘œκΈ°
        • λ°±μ—”λ“œκ°€ 봀을 λ•Œ ν•„μš”ν•œ κΈ°λŠ₯듀을 단 λ²ˆμ— μ•Œ 수 μžˆλ„λ‘ ν•˜κΈ°
        • μ°Έκ³  - NHN μ½”λ”© μ»¨λ²€μ…˜
        • ν•œ λ¬Έμ„œμ—μ„œ λ™μΌν•œ ID 2번 이상 μ‚¬μš©ν•˜μ§€ μ•ŠμŒ.
        • CSS μž‘μ„±μ‹œ base.html 의 μŠ€νƒ€μΌμ„ ν™•μΈν•œ λ’€ μ€‘λ³΅λœ μ„ νƒμž 없이 μž‘μ„±
        • image
    • Back-END

      • Model Class

        • λͺ¨λΈ 클래슀의 첫 κΈ€μžλŠ” λŒ€λ¬Έμžλ‘œ ν•œλ‹€.
      • App Folder

        • APP 폴더 이름은 첫 κΈ€μžλŠ” μ†Œλ¬Έμžλ‘œ ν•œλ‹€.
        • APP 폴더 이름은 κΈ°λŠ₯이 볡수 일 경우, 's'λ₯Ό λΆ™νžŒλ‹€.
        • 예) comments, users
      • View Function

        • ν•¨μˆ˜(λ©”μ†Œλ“œ)에 낙타 ν‘œκΈ°λ²• 적용
          • 예) getName() ...
        • λ³€μˆ˜(ν•„λ“œ)에 νŒŸν™€ ν‘œκΈ°λ²• 적용
          • 예) MyFirstVariable -> my_first_variable
      • Templates

        • templates ν΄λ”λŠ” APP 폴더 λ³„λ‘œ λ‚˜λˆ„μ§€ μ•Šκ³ , ν†΅ν•©ν•œλ‹€.
        • 각 ν•΄λ‹Ή λ˜λŠ” APP 폴더 λͺ…μœΌλ‘œ λ‚˜λˆ„μ–΄, templateλ₯Ό μ €μž₯ν•œλ‹€.
        • ex) templates/order_list/order.html
      • Static

        • 각 App 폴더 static 폴더λ₯Ό μƒμ„±ν•˜μ—¬ μ €μž₯ν•œλ‹€.
        • python manage.py collectstatic 을 톡해 λͺ¨λ“  static νŒŒμΌμ„ λͺ¨μ€λ‹€.
        • css
          • cssλ₯Ό λ‹΄λŠ” 폴더 λͺ…이며, css λͺ…은 htmlκ³Ό 동일 μ‹œ ν•œλ‹€.
        • js
          • jsλ₯Ό λ‹΄λŠ” 폴더 λͺ…이며, js λͺ…은 htmlκ³Ό 동일 μ‹œ ν•œλ‹€.

About

πŸ† LIKELION&LOTTE 8th - Hackathon Project BaroBarot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published