/Booklog

Primary LanguageJavaScript

BOOKLOG

πŸ“– Introduction

λ©‹μŸμ΄μ‚¬μžμ²˜λŸΌ 9κΈ° 해컀톀 : 뢁둜그

🏁 μ„€μΉ˜ μ•ˆλ‚΄

1. git clone

μ›ν•˜λŠ” 폴더에 λ ˆν¬μ§€ν† λ¦¬λ₯Ό ν΄λ‘ ν•΄μ£Όμ„Έμš”.

$ git clone https://github.com/Han-Joon-Hyeok/Booklog.git

2. κ°€μƒν™˜κ²½ 생성

Djangoλ₯Ό μ‹€ν–‰ν•˜κΈ° μœ„ν•œ κ°€μƒν™˜κ²½μ„ μƒμ„±ν•΄μ£Όμ„Έμš”.

$ python -m venv venv

κ°€μƒν™˜κ²½ 이름은 "venv"둜 ν†΅μΌν•©λ‹ˆλ‹€.

3. κ°€μƒν™˜κ²½μ„ ν™œμ„±ν™” μ‹œμΌœμ€λ‹ˆλ‹€.

$ source venv/scripts/activate # for windows
$ source venv/bin/activate # for mac or linux

4. ν”„λ‘œμ νŠΈμ— ν•„μš”ν•œ νŒ¨ν‚€μ§€λ₯Ό λ‹€μš΄ λ°›μŠ΅λ‹ˆλ‹€.

μ•„λž˜μ˜ λͺ…λ Ήμ–΄λ₯Ό 터미널에 μž…λ ₯ν•΄μ£Όμ„Έμš”. (ν•„μˆ˜)

$ pip install -r requirements.txt # for Windows
$ pip3 install -r requirements.txt # for Mac/Linux

ν”„λ‘œμ νŠΈμ— ν•„μš”ν•œ νŒ¨ν‚€μ§€ νŒŒμΌμ„ μƒˆλ‘­κ²Œ μΆ”κ°€ν•˜κ³ μž ν•œλ‹€λ©΄ μ•„λž˜μ˜ λͺ…λ Ήμ–΄λ₯Ό μž…λ ₯ν•΄μ£Όμ„Έμš”. (선택사항)

$ pip freeze > requirements.txt

:octocat: Git command

$ git pull origin <branch_name>
$ git add .
$ git commit -m "messages"
$ git push origin <branch_name>

<branch_name>μ—λŠ” 'main' λ˜λŠ” λ‹€λ₯Έ 브랜치 이름을 μž…λ ₯ν•΄μ£Όμ„Έμš”.

🧐 What's inside?

.
β”œβ”€β”€ base
β”œβ”€β”€ config
β”œβ”€β”€ follow
β”œβ”€β”€ post
β”œβ”€β”€ singup
β”œβ”€β”€ user
β”œβ”€β”€ .gitignore
β”œβ”€β”€ manage.py
β”œβ”€β”€ README.md
└── requirements.txt
  1. /base: main νŽ˜μ΄μ§€ 및 곡톡 μ»΄ν¬λ„ŒνŠΈ(헀더, ν‘Έν„°)
  2. /config: ν”„λ‘œμ νŠΈ μ…‹μ—… 폴더
  3. /follow: νŒ”λ‘œμš°/νŒ”λ‘œμ›Œ κΈ°λŠ₯
  4. /post: κ²Œμ‹œλ¬Ό 관리
  5. /signup: νšŒμ›κ°€μž… 관리
  6. /user: μœ μ € 관리
  7. .gitignore: git νŒŒμΌμ— μ €μž₯ν•˜μ§€ μ•Šμ„ 파일 λͺ©λ‘
  8. manage.py: Django μ»€λ§¨λ“œ μœ ν‹Έ
  9. requirement.txt: pip μΈμŠ€ν†¨ νŒ¨ν‚€μ§€ 리슀트

πŸ“ License

This project uses the MIT License